hw

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CpuID added in v0.1.1

func CpuID() (id string)

func CpuTemp

func CpuTemp() int

func ThermalZone

func ThermalZone(zone int) (temp int, err error)

func ThermalZoneFile

func ThermalZoneFile(zone int) string

Types

type Status added in v0.2.87

type Status struct {
	Uptime          uint64
	Temperature     int
	CpuUsedPercent  int
	RamTotal        uint64
	RamUsed         uint64
	RamUsedPercent  int
	DiskTotal       uint64
	DiskUsed        uint64
	DiskUsedPercent int
}

func GetStatus added in v0.2.87

func GetStatus() Status

func (Status) Cpu added in v0.2.87

func (o Status) Cpu() string

func (Status) Disk added in v0.2.87

func (o Status) Disk() string

func (Status) Ram added in v0.2.87

func (o Status) Ram() string

Jump to

Keyboard shortcuts

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