sensors

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Device

type Device struct {
	Name    string
	Sensors []Sensor
}

func GetDefaultDevices

func GetDefaultDevices() ([]Device, error)

func GetDevices

func GetDevices(hwmonPath string) ([]Device, error)

func (*Device) String

func (d *Device) String() string

type Sensor

type Sensor struct {
	Name     string
	Path     string
	Alarm    bool
	Perfdata perfdata.Perfdata
}

func (*Sensor) String

func (s *Sensor) String() string

Jump to

Keyboard shortcuts

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