systeminfo

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2024 License: Apache-2.0 Imports: 17 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type System

type System interface {
	GetIP() string
	GetUptime() string
	GetSubnet() string
	GetNetmask() string
	GetGateway() string
	GetInternetIP() (*publicIP, error)
	GetSystemTime() *systemTime
	GetCurrentCPUUsage() string
	GetCurrentMemoryUsage() string
	GetMemoryFree() string
	GetTopProcessesByCPUUsage(count int) ([]*topProcess, error)
	GetTopProcessesByMemory(count int) ([]*topProcess, error)
	GetHostUniqueID(useMac bool) (string, error) // try mac or system uuid
}

System provides methods to retrieve various system-level information

func NewSystem

func NewSystem() System

Jump to

Keyboard shortcuts

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