PKGBUILD/pkg/sensor/interfaces.go

15 lines
229 B
Go
Raw Normal View History

package sensor
import (
"time"
2020-06-10 19:13:05 +00:00
"git.cryptic.systems/volker.raschek/flucky/pkg/types"
)
type Sensor interface {
GetTicker() *time.Ticker
// Read single measured values from sensor
Read() ([]*types.MeasuredValue, error)
}