32 lines
502 B
Go
32 lines
502 B
Go
package drivers
|
|
|
|
type TemperatureSensor struct {
|
|
path string
|
|
Name string
|
|
TempC float64
|
|
}
|
|
|
|
type TemperatureDriver interface {
|
|
ReadTemperatureSensors() ([]TemperatureSensor, error)
|
|
}
|
|
|
|
type PowerSensor struct {
|
|
path string
|
|
Name string
|
|
Watts float64
|
|
}
|
|
|
|
type PowerDriver interface {
|
|
ReadPowerSensors() ([]PowerSensor, error)
|
|
}
|
|
|
|
type ClockSensor struct {
|
|
path string
|
|
Name string
|
|
FrequencyGHz float64
|
|
}
|
|
|
|
type ClockDriver interface {
|
|
ReadClockSensors() ([]ClockSensor, error)
|
|
}
|