system

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: May 12, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NumCPU

func NumCPU() int

func Uptime

func Uptime() (float64, error)

Types

type SystemStat

type SystemStat struct {
	Uptime       float64 `json:"uptime"`
	CPUs         int     `json:"cpus"`
	OSFamily     string  `json:"os"`
	Architecture string  `json:"arch"`
	Version      string  `json:"version"`
	Distro       string  `json:"distro"`
	Container    string  `json:"container"`
	Virtualized  bool    `json:"virtualized"`
}

func GetOSInfo

func GetOSInfo() (SystemStat, error)

func GetStat

func GetStat() (SystemStat, error)

Jump to

Keyboard shortcuts

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