Documentation ¶
Index ¶
- Variables
- func CPUInfo(args ...int) (string, error)
- func CPUPercent() ([]float64, error)
- func Disk(pt ...bool) ([]*disk.UsageStat, error)
- func DiskFree() (uint64, error)
- func DiskPercent() (string, error)
- func DiskTotal() (uint64, error)
- func DiskUsed() (uint64, error)
- func KernelVer() (string, error)
- func MemFree() (uint64, error)
- func MemPercent() (string, error)
- func MemTotal() (uint64, error)
- func MemUsed() (uint64, error)
- func Platform() (string, error)
- func PlatformInfo() (platform, family, osVersion string, err error)
- func ToGB(data uint64) uint64
- func ToKB(data uint64) uint64
- func ToMB(data uint64) uint64
- func Uptime() (uint64, error)
- func UsedDisk() (uint64, error)
- func UsedMem() (uint64, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // InitMemUsed init mem used InitMemUsed uint64 // InitDiskUsed init disk used InitDiskUsed uint64 )
Functions ¶
func CPUPercent ¶
CPUPercent returns the amount of use cpu in percent.
func DiskPercent ¶
DiskPercent returns the amount of use disk in percent.
func MemPercent ¶
MemPercent returns the amount of use memory in percent.
func PlatformInfo ¶
PlatformInfo fetches system platform information.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.