Documentation ¶
Index ¶
- type SensorValues
- type Store
- func (s *Store) ReadLastValue(sensorID string) (*TimedSensorValues, error)
- func (s *Store) ReadValues(sensorID string, duration time.Duration) ([]*TimedSensorValues, error)
- func (s *Store) StoreValues(sensorID string, values SensorValues) error
- func (s *Store) StoreValuesChannel(sensorID string) (chan SensorValues, error)
- type TimedSensorValues
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SensorValues ¶
type SensorValues struct {
Temperature, Humidity float32
}
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) ReadLastValue ¶
func (s *Store) ReadLastValue(sensorID string) (*TimedSensorValues, error)
func (*Store) ReadValues ¶
func (*Store) StoreValues ¶
func (s *Store) StoreValues(sensorID string, values SensorValues) error
func (*Store) StoreValuesChannel ¶
func (s *Store) StoreValuesChannel(sensorID string) (chan SensorValues, error)
type TimedSensorValues ¶
type TimedSensorValues struct { Timestamp time.Time Values SensorValues }
Click to show internal directories.
Click to hide internal directories.