sys

package
v0.0.0-...-37e6509 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2020 License: MIT Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Date

func Date() (string, error)

func Exec

func Exec(command string) (string, error)

func GetCpuType

func GetCpuType() (string, error)

func GetGpuType

func GetGpuType() (string, error)

func GetOSVersion

func GetOSVersion() (string, error)

func UnameKernel

func UnameKernel() (string, error)

Types

type Cpu

type Cpu struct {
	User  uint64
	Idle  uint64
	Wait  uint64
	Total uint64
}

func GetCpu

func GetCpu() (*Cpu, error)

GetMem gets memory information

type Disk

type Disk struct {
	Total string
	Free  string
}

Disk Disk

func GetDisk

func GetDisk() (*Disk, error)

GetDisk gets disk information

type Gpu

type Gpu struct {
	ID     string
	Model  string
	Memory Mem
}

Gpu Gpu

func GetGpu

func GetGpu() ([]Gpu, error)

GetGpu gets gpu information

type Mem

type Mem struct {
	Total string
	Free  string
}

Mem Mem

func GetMem

func GetMem() (*Mem, error)

GetMem gets memory information

type Swap

type Swap struct {
	Total string
	Free  string
}

Swap Swap

func GetSwap

func GetSwap() (*Swap, error)

GetSwap gets swap space information

Jump to

Keyboard shortcuts

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