Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SystemInfo ¶
type SystemInfo struct {
Memory *mem.VirtualMemoryStat `json:"memory"`
CPUInfo []cpu.InfoStat `json:"cpuInfo"`
CPUUsageRates []float64 `json:"cpuUsageRates"`
DiskUsage *disk.UsageStat `json:"diskUsage"`
}
func GetSystemUsage ¶
func GetSystemUsage() (*SystemInfo, error)
func (SystemInfo) Print ¶
func (s SystemInfo) Print()
Click to show internal directories.
Click to hide internal directories.