Versions in this module Expand all Collapse all v0 v0.1.17 Jun 28, 2020 v0.1.16 Jun 28, 2020 v0.1.15 Jun 19, 2020 v0.1.12 Jun 16, 2020 v0.1.10 Jun 16, 2020 v0.1.9 Jun 15, 2020 v0.1.8 Jun 15, 2020 Changes in this version + func GetCpuPercent() float64 type NetInfo + func (ni *NetInfo) GetNetSpeed() (upspeed float32, downspeed float32) v0.1.7 Jun 11, 2020 Changes in this version + func CreateNetInfo() map[string]*NetInfo type SYSTEM + func (s *SYSTEM) GetNetSpeed(cardName string) (upspeed string, downspeed string) v0.1.6 Jun 11, 2020 v0.1.5 Jun 11, 2020 v0.1.4 Jun 11, 2020 Changes in this version + type CpuInfo struct + CacheSize int32 + Cores int32 + Mhz float64 + ModelName string + func GetCpuInfo() []*CpuInfo + type DiskInfo struct + Free uint64 + Fstype string + Total uint64 + Used uint64 + UsedPercent float64 + func GetDiskInfo() *DiskInfo + type HostInfo struct + Hostid string + Hostname string + KernelArch string + KernelVersion string + OS string + Platform string + PlatformVersion string + func GetHostInfo() *HostInfo + type MemInfo struct + Free int + Total int + Used int + UsedPercent float64 + func GetMemInfo() *MemInfo + type NetInfo struct + Addrs string + Hardwareaddr string + Name string + func GetNetInfo() []*NetInfo + type SYSTEM struct + CPU []*CpuInfo + DISK *DiskInfo + HOST *HostInfo + MEM *MemInfo + NET []*NetInfo + func (s *SYSTEM) Start() + func (s *SYSTEM) Stop()