Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store storage structure
func (*Store) GetTemperatureData ¶
func (s *Store) GetTemperatureData() (map[string][]Thermostat, error)
GetTemperatureData reads the temperatureData from storage
func (*Store) SaveTemperatureResult ¶
func (s *Store) SaveTemperatureResult(tick time.Time, thermostats map[string]*nest.Thermostat) error
SaveTemperatureResult persists temperature data
type Thermostat ¶
type Thermostat struct { ID string `json:"id"` Name string `json:"name"` Temperatures []temperature `json:"temperatures"` }
Thermostat contains all stored temperatures for a thermostat
Click to show internal directories.
Click to hide internal directories.