system

package
v1.0.1-0...-6f851f5 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintSystemInfo

func PrintSystemInfo()

Types

type CpuInfo

type CpuInfo struct {
	ModelName string
	Frequency float64
	Cores     int
	Usage     float64
}

type GpuInfo

type GpuInfo struct {
	Name   string
	Vendor string
}

type HostInfo

type HostInfo struct {
	Platform        string
	PlatformVersion string
	KernelArch      string
	Uptime          uint64
}

type MemoryInfo

type MemoryInfo struct {
	Total       uint64
	Free        uint64
	Used        uint64
	UsedPercent float64
}

type NetworkInfo

type NetworkInfo struct {
	InternetConnected bool
	PublicIP          string
}

type SystemInfo

type SystemInfo struct {
	Host    HostInfo
	Cpu     CpuInfo
	Gpu     GpuInfo
	Memory  MemoryInfo
	Network NetworkInfo
}

func GetSystemInfo

func GetSystemInfo() (SystemInfo, error)

Jump to

Keyboard shortcuts

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