drivers

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadSysFile

func ReadSysFile(name string) (string, error)

Types

type FanDefaults added in v0.1.0

type FanDefaults struct {
	Level  string
	Repeat models.Seconds
}

type FanThinkpad

type FanThinkpad struct {
	// contains filtered or unexported fields
}

func NewFanThinkpad

func NewFanThinkpad(conf config.Fan) *FanThinkpad

func (*FanThinkpad) Defaults added in v0.1.0

func (f *FanThinkpad) Defaults() FanDefaults

func (*FanThinkpad) Init

func (f *FanThinkpad) Init() error

func (*FanThinkpad) SetLevel

func (f *FanThinkpad) SetLevel(level string) error

type ProfilePlatform

type ProfilePlatform struct {
	// contains filtered or unexported fields
}

func NewProfilePlatform

func NewProfilePlatform(conf config.Profile) *ProfilePlatform

func (*ProfilePlatform) Init

func (p *ProfilePlatform) Init() error

func (*ProfilePlatform) State

func (p *ProfilePlatform) State() (string, error)

type SensorHwmon

type SensorHwmon struct {
	// contains filtered or unexported fields
}

func NewSensorHwmon

func NewSensorHwmon(conf config.Sensor) *SensorHwmon

func (*SensorHwmon) Init

func (s *SensorHwmon) Init() error

func (*SensorHwmon) Value

func (s *SensorHwmon) Value() (float64, error)

Jump to

Keyboard shortcuts

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