PKGBUILD/pkg/sensor/interfaces.go

13 lines
179 B
Go
Raw Normal View History

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