PKGBUILD/pkg/sensor/interfaces.go

14 lines
200 B
Go

package sensor
import (
"time"
"git.cryptic.systems/volker.raschek/flucky/pkg/types"
)
type Sensor interface {
GetID() string
GetTicker() *time.Ticker
Read() ([]*types.MeasuredValue, error)
}