PKGBUILD/pkg/sensor/interfaces.go

13 lines
185 B
Go

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