PKGBUILD/pkg/sensor/interfaces.go

13 lines
190 B
Go

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