PKGBUILD/pkg/logger/logger.go

25 lines
426 B
Go
Raw Normal View History

2019-03-04 09:45:00 +00:00
package logger
import (
"git.cryptic.systems/fh-trier/go-flucky/pkg/types"
)
type Logger interface {
LogHumidities(humidities []*types.Humidity) error
LogTemperatures(temperatures []*types.Temperature) error
}
type LoggerType string
const (
LogFile LoggerType = "file"
LogRemote = "remote"
)
type LogValue string
const (
LogHumidity LogValue = "humidity"
LogTemperature = "temperature"
)