monitor

package
v3.1.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2026 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHostname

func GetHostname() string

GetHostname 获取主机名

func GetOSInfo

func GetOSInfo() string

GetOSInfo 获取操作系统信息

func GetUptime

func GetUptime() int64

GetUptime 获取运行时间(秒)

Types

type SystemInfo

type SystemInfo struct {
	CPUUsage    float64
	MemoryUsage float64
	DiskUsage   float64
	Uptime      int64
	OS          string
}

SystemInfo 系统信息

func GetSystemInfo

func GetSystemInfo() (*SystemInfo, error)

GetSystemInfo 获取系统信息

Jump to

Keyboard shortcuts

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