Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFloat64MB ¶
func GetPercent ¶
func GetUint64GB ¶
Types ¶
type CPUStatus ¶
type CPUStatus struct {
Cores int `json:"cores"`
UsedPercent float64 `json:"usedPercent"`
ModelName string `json:"modelName"`
}
func GetCPUStatus ¶
func GetCPUStatus() CPUStatus
type DiskStatus ¶
type DiskStatus struct {
Total float64 `json:"total"`
Used float64 `json:"used"`
Free float64 `json:"free"`
FsType string `json:"fsType"`
UsedPercent float64 `json:"usedPercent"`
Path string `json:"path"`
}
func GetDiskStat ¶
func GetDiskStat() DiskStatus
func (*DiskStatus) String ¶
func (d *DiskStatus) String() string
Click to show internal directories.
Click to hide internal directories.