sensors

package
v0.0.0-...-e06cd52 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Shutdown

func Shutdown()

Shutdown frees resources

Types

type TemperatureSensorInfo

type TemperatureSensorInfo struct {
	SensorName        string  `json:"sensor_name"`
	Temperature       float64 `json:"temperature"`
	CriticalThreshold float64 `json:"critical_threshold"` // a temperature threshold set by sensor, driver or configuration
	Unit              string  `json:"unit"`
}

func ReadTemperatureSensors

func ReadTemperatureSensors() ([]*TemperatureSensorInfo, error)

ReadTemperatureSensors tries to read temperature sensors via sysfs interface: https://www.kernel.org/doc/Documentation/hwmon/sysfs-interface

Jump to

Keyboard shortcuts

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