sys_environment

package
v0.0.0-...-4699a84 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllDiskPartition

func GetAllDiskPartition() []disk.PartitionStat

func GetCpuPercent

func GetCpuPercent() []cpu.InfoStat

func GetDiskPercent

func GetDiskPercent() float64

func GetExternal

func GetExternal() string

GetExternal 获取本机公网ip

func GetHostInfo

func GetHostInfo() *host.InfoStat

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 GetOperatingSystem

func GetOperatingSystem() string

GetOperatingSystem 获取操作系统并返回对应文件夹路径符号

func GetPrivateKey

func GetPrivateKey() ([]byte, error)

func GetPublicKey

func GetPublicKey() ([]byte, error)

func GetSpecifyDiskPartition

func GetSpecifyDiskPartition(driveLetter string) *disk.UsageStat

func GetSwapDevice

func GetSwapDevice() []*mem.SwapDevice

func GetSwapMemory

func GetSwapMemory() *mem.SwapMemoryStat

Types

This section is empty.

Jump to

Keyboard shortcuts

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