sysinfo

package
v0.0.0-...-a99fd5a Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CpuInfo

type CpuInfo struct {
	Model   string `json:"model,omitempty"`
	Speed   string `json:"speed,omitempty"`
	Core    string `json:"core,omitempty"`
	Percent string `json:"percent,omitempty"`
}

func Cpu

func Cpu() CpuInfo

type HddInfo

type HddInfo struct {
	Total   string `json:"total,omitempty"`
	Used    string `json:"used,omitempty"`
	Free    string `json:"free,omitempty"`
	Percent string `json:"percent,omitempty"`
}

func Hdd

func Hdd() HddInfo

type MemInfo

type MemInfo struct {
	Total   string `json:"total,omitempty"`
	Free    string `json:"free,omitempty"`
	Percent string `json:"percent,omitempty"`
}

func Mem

func Mem() MemInfo

type SysInfo

type SysInfo struct {
	Hostname string `json:"hostname,omitempty"`
	Platform string `json:"platform,omitempty"`
	Uuid     string `json:"uuid,omitempty"`
	Uptime   string `json:"uptime,omitempty"`

	Cpu CpuInfo `json:"cpu,omitempty"`
	Mem MemInfo `json:"mem,omitempty"`
	Hdd HddInfo `json:"hdd,omitempty"`
}

func System

func System() SysInfo

Jump to

Keyboard shortcuts

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