Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CPU = &CPUUsageState{}
View Source
var CPUInfo = &CPUInfoState{}
View Source
var DISK = &DiskState{}
View Source
var HOST = &HostInfoState{}
Functions ¶
This section is empty.
Types ¶
type CPUDetailedPercent ¶
type CPUDetailedPercent struct {
User float64 `json:"user"`
System float64 `json:"system"`
Nice float64 `json:"nice"`
Idle float64 `json:"idle"`
Iowait float64 `json:"iowait"`
Irq float64 `json:"irq"`
Softirq float64 `json:"softirq"`
Steal float64 `json:"steal"`
}
func (*CPUDetailedPercent) GetCPUDetailedPercent ¶
func (c *CPUDetailedPercent) GetCPUDetailedPercent() []float64
type CPUDetailedStat ¶
type CPUInfoState ¶
type CPUInfoState struct {
// contains filtered or unexported fields
}
func (*CPUInfoState) GetCPUInfo ¶
func (c *CPUInfoState) GetCPUInfo(forceRefresh bool) ([]cpu.InfoStat, error)
func (*CPUInfoState) GetLogicalCores ¶
func (c *CPUInfoState) GetLogicalCores(forceRefresh bool) (int, error)
func (*CPUInfoState) GetPhysicalCores ¶
func (c *CPUInfoState) GetPhysicalCores(forceRefresh bool) (int, error)
type CPUUsageState ¶
type CPUUsageState struct {
// contains filtered or unexported fields
}
func (*CPUUsageState) GetCPUUsage ¶
func (c *CPUUsageState) GetCPUUsage() (float64, []float64, []float64)
func (*CPUUsageState) NumCPU ¶
func (c *CPUUsageState) NumCPU() int
type DiskState ¶
type DiskState struct {
// contains filtered or unexported fields
}
func (*DiskState) ClearAllCache ¶
func (d *DiskState) ClearAllCache()
func (*DiskState) ClearUsageCache ¶
func (*DiskState) GetPartitions ¶
type DiskUsageEntry ¶
type DiskUsageEntry struct {
// contains filtered or unexported fields
}
type HostInfoState ¶
type HostInfoState struct {
// contains filtered or unexported fields
}
func (*HostInfoState) GetDistro ¶
func (h *HostInfoState) GetDistro() string
func (*HostInfoState) GetHostInfo ¶
func (h *HostInfoState) GetHostInfo(forceRefresh bool) (*host.InfoStat, error)
Click to show internal directories.
Click to hide internal directories.