Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CurrentSysInfo = &SysInfo{}
Functions ¶
This section is empty.
Types ¶
type CpuInfo ¶
type CpuInfo struct { SocketAt int `json:"socket_at"` // cpu 插槽 Brand brandFlag.Brand `json:"brand"` // 厂商品牌 Class string `json:"class"` // 系列分类 ClassRd int64 `json:"class_rd"` // 系列分类代数 Cores int64 Threads int64 ModelName string `json:"model_name"` // CPU 型号 FrequencyMainMHz float64 `json:"frequency_main"` // CPU 主频 单位MHz Percentage float64 `json:"percentage"` // 使用率 PercentageShow string `json:"percentage_show"` //使用率显示 }
type MemoryInfo ¶
type MountInfo ¶
type MountInfo struct { Path string Partition disk.PartitionStat Usage disk.UsageStat }
type NetInfo ¶
type NetInfo struct {
Stat []net.IOCountersStat
}
Click to show internal directories.
Click to hide internal directories.