sysenv

package
v1.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCpuInfo

func GetCpuInfo() (data []byte)

GetCpuInfo 获取CPU信息

func GetDiskInfo

func GetDiskInfo() (data []byte)

GetDiskInfo 获取磁盘信息

func GetHostInfo

func GetHostInfo() (data []byte)

GetHostInfo 获取主机信息

func GetMemInfo

func GetMemInfo() (data []byte)

GetMemInfo 获取内存信息

func GetNetStatusInfo

func GetNetStatusInfo() (data []byte)

GetNetStatusInfo 获取网络信息

func GetSysLoad

func GetSysLoad() (data []byte)

GetSysLoad 获取系统负载信息

Types

type CpuInfo

type CpuInfo struct {
	Number      int       //cup个数
	Cores       int32     //核数
	UsedPercent []float64 //cpu使用率
}

type NetWorkInfo

type NetWorkInfo struct {
	Name         string
	Receive      uint64
	Sent         uint64
	ReceiveSpeed uint64
	SentSpeed    uint64
}

NetWorkInfo 网速信息

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL