PKGBUILD/pkg/sensor/interfaces.go

14 lines
200 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 {
GetID() string
GetTicker() *time.Ticker
Read() ([]*types.MeasuredValue, error)
}