Documentation ¶
Index ¶
- func GetAllDiskPartition() []disk.PartitionStat
- func GetCpuPercent() []cpu.InfoStat
- func GetDiskPercent() float64
- func GetExternal() string
- func GetHostInfo() *host.InfoStat
- func GetIOCounters() map[string]disk.IOCountersStat
- func GetInternalIP() (localIp []string)
- func GetMemPercent() *mem.VirtualMemoryStat
- func GetOperatingSystem() string
- func GetPrivateKey() ([]byte, error)
- func GetPublicKey() ([]byte, error)
- func GetSpecifyDiskPartition(driveLetter string) *disk.UsageStat
- func GetSwapDevice() []*mem.SwapDevice
- func GetSwapMemory() *mem.SwapMemoryStat
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAllDiskPartition ¶
func GetAllDiskPartition() []disk.PartitionStat
func GetCpuPercent ¶
func GetDiskPercent ¶
func GetDiskPercent() float64
func GetHostInfo ¶
func GetIOCounters ¶
func GetIOCounters() map[string]disk.IOCountersStat
func GetInternalIP ¶
func GetInternalIP() (localIp []string)
GetInternalIP * 获取内网ip
- @param netMode 网络模式(tcp、udp、tcp4、udp4等等)
- @return []net.ConnectionStat 网络信息数组
func GetMemPercent ¶
func GetMemPercent() *mem.VirtualMemoryStat
func GetPrivateKey ¶
func GetPublicKey ¶
func GetSpecifyDiskPartition ¶
func GetSwapDevice ¶
func GetSwapDevice() []*mem.SwapDevice
func GetSwapMemory ¶
func GetSwapMemory() *mem.SwapMemoryStat
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.