Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HealthHandler ¶
func HealthHandler(w http.ResponseWriter, r *http.Request)
Types ¶
type Stats ¶
type Stats struct {
Time int64 `json:"time"`
Version string `json:"go_version"`
OS string `json:"go_os"`
Arch string `json:"go_arch"`
CPUs int `json:"cpus"`
GoroutineNum int `json:"goroutine_num"`
MemoryAlloc uint64 `json:"memory_alloc"`
MemoryTotalAlloc uint64 `json:"memory_total_alloc"`
MemorySys uint64 `json:"memory_sys"`
MemoryUsage float64 `json:"memory_usage_percent"`
GCCount uint32 `json:"gc_count"`
GCPauseTotal uint64 `json:"gc_pause_total_ns"`
ThreadCount int64 `json:"thread_count"`
PID int `json:"pid"`
PPID int `json:"ppid"`
Executable string `json:"executable"`
Uptime int64 `json:"uptime"`
EnvVars map[string]string `json:"env_vars"`
BuildInfo string `json:"build_info"`
}
func CollectStats ¶
func CollectStats() *Stats
Click to show internal directories.
Click to hide internal directories.