Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device struct {
Type string `json:"type"`
Node string `json:"node,omitempty"`
Id string `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Online bool `json:"online"`
StateMap map[string]string `json:"stateMap,omitempty"`
State map[string]interface{} `json:"state,omitempty"`
Tags []string `json:"tags"`
sync.RWMutex
}
Device is the abstraction between devices on the nodes and the device on the server
type Map ¶
Map is a list of all devices. The key should be "<nodeuuid>.<deviceuuid>"
func (*Map) MarshalJSON ¶ added in v0.0.6
func (*Map) UnmarshalJSON ¶ added in v0.0.6
Click to show internal directories.
Click to hide internal directories.