Documentation ¶
Index ¶
- func GetAvailableMemory() string
- func GetCpuCores() int32
- func GetCpuMhz() string
- func GetCpuModelName() string
- func GetFreeDisk() string
- func GetTotalDisk() string
- func GetTotalMemory() string
- func GetUsedDisk() string
- func GetUsedMemory() string
- func GetUsedPercentDisk() string
- func GetUsedPercentMemory() string
- type Info
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetUsedPercentDisk ¶
func GetUsedPercentDisk() string
GetUsedPercentDisk get used percent disk.
func GetUsedPercentMemory ¶
func GetUsedPercentMemory() string
GetUsedPercentMemory get used percent memory.
Types ¶
type Info ¶
type Info struct { Disk struct { Device string `json:"device"` Free string `json:"free"` Used string `json:"used"` UsedPercent string `json:"used_percent"` } `json:"disk"` Cpu struct { Name string `json:"name"` Speed string `json:"speed"` Core int32 `json:"core"` } `json:"cpu"` Memory struct { Memory string `json:"memory"` Used string `json:"used"` UsedPercent string `json:"used_percent"` } `json:"memory"` }
Click to show internal directories.
Click to hide internal directories.