internal

package
v0.0.0-...-2eb3190 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2026 License: AGPL-3.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitializeObjects

func InitializeObjects() (fanMap map[configuration.FanConfig]fans.Fan, reg *registry.Registry, err error)

func RunDaemon

func RunDaemon() error

RunDaemon runs the daemon until it is stopped by SIGINT/SIGTERM (nil) or fails (an error). Errors caused by the config are configuration.ConfigErrors.

Types

type SensorMonitor

type SensorMonitor interface {
	Run(ctx context.Context) error
}

func NewSensorMonitor

func NewSensorMonitor(sensor sensors.Sensor, pollingRate time.Duration) SensorMonitor

func NewSensorMonitorWithClock

func NewSensorMonitorWithClock(sensor sensors.Sensor, pollingRate time.Duration, clock util.Clock) SensorMonitor

NewSensorMonitorWithClock is NewSensorMonitor with an explicit time source, e.g. a util.FakeClock in tests.

Directories

Path Synopsis
status
Package status contains the state of a fan controller, as exported by the statistics and the REST API.
Package status contains the state of a fan controller, as exported by the statistics and the REST API.
lmsensors
Package lmsensors discovers hwmon chips and their features the way libsensors (lm-sensors) does.
Package lmsensors discovers hwmon chips and their features the way libsensors (lm-sensors) does.
Package quirks is fan2go's registry of known hardware quirks: driver behaviour that fan2go can't detect reliably, but that is documented in the kernel docs or the driver source of a specific device.
Package quirks is fan2go's registry of known hardware quirks: driver behaviour that fan2go can't detect reliably, but that is documented in the kernel docs or the driver source of a specific device.
Package warnings holds the problems fan2go detected about its configured items (fans, sensors, curves) that the user should know about, so that the REST API can show them besides the log.
Package warnings holds the problems fan2go detected about its configured items (fans, sensors, curves) that the user should know about, so that the REST API can show them besides the log.

Jump to

Keyboard shortcuts

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