Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FreifunkState ¶
type OpenState ¶
type OpenState struct { Keyholder string Space *OpenValueTs Radstelle *OpenValueTs Lab3d *OpenValueTs Machining *OpenValueTs }
func (*OpenState) OpenStateForEvent ¶
func (os *OpenState) OpenStateForEvent(event events.EventName) (*OpenValueTs, error)
type OpenValueTs ¶
type PowerUsageState ¶
type PowerUsageState struct { Front *PowerValueTs `json:"front"` Back *PowerValueTs `json:"back"` Machining *PowerValueTs `json:"machining"` }
type PowerValueTs ¶
type SpaceDevicesState ¶
type SpaceDevicesState struct { structs.PeopleAndDevices Timestamp int64 `json:"timestamp"` }
type State ¶
type State struct { Mqtt *MqttState Open *OpenState SpaceDevices *SpaceDevicesState PowerUsage *PowerUsageState Freifunk *FreifunkState }
func NewDefaultState ¶
func NewDefaultState() *State
Click to show internal directories.
Click to hide internal directories.