Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDisksInfo ¶
func GetDisksInfo() map[string]interface{}
func GetHostInfo ¶
func GetMemoryInfo ¶
func GetMemoryInfo() *mem.VirtualMemoryStat
func GetNetInfo ¶
func GetNetInfo() map[string]interface{}
func GetProcessMemoryInfo ¶
func GetProcessMemoryInfo() map[string]interface{}
Types ¶
type CPUInfoStr ¶
func GetCPUInfo ¶
func GetCPUInfo() CPUInfoStr
type SystemStatus ¶
type SystemStatus struct { PID int ExecutableLocation string UserID int GroupID int Started time.Time RunningTimeSeconds float64 NrOfRunningGoroutines int MemStats map[string]interface{} NrOfCPUUsed int NrOfCGOCalls int64 CPUInfo CPUInfoStr DisksInfo map[string]interface{} NetInfo map[string]interface{} HostInfo *host.InfoStat VirtualMemoryStat *mem.VirtualMemoryStat }
TODO: should be moved in helpers or smth
func GetSystemStatus ¶
func GetSystemStatus() SystemStatus
Click to show internal directories.
Click to hide internal directories.