Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager is the data manager
func NewManager ¶
NewManager creates a new instance of a Manager and returns it
func (Manager) GetConfig ¶
func (store Manager) GetConfig() (SystemConfig, error)
GetConfig gets a config item from the system
func (Manager) SetConfig ¶
func (store Manager) SetConfig(updatedConfig SystemConfig) (SystemConfig, error)
SetConfig sets a config item to the system
type SystemConfig ¶ added in v1.0.69
type SystemConfig struct { ZipCode int `json:"zipcode"` TimeZone string `json:"timezone"` UseZipCodeForLocation bool `json:"useZipcodeForLocation"` Location string `json:"location"` RadarStation string `json:"radarStation"` CalendarURL string `json:"calendarUrl"` CalendarTimeZone string `json:"calendarTimezone"` WifiSSID string `json:"wifiSSID"` WifiPassword string `json:"wifiPassword"` }
type WebSocketResponse ¶
type WebSocketResponse struct { Type string `json:"type"` Data interface{} `json:"data"` }
WebSocketResponse represents a WebSocket event response
Click to show internal directories.
Click to hide internal directories.