Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cfg ¶
type Cfg struct { DevID string `json:"dev_id"` Data json.RawMessage `json:"data"` }
Cfg .
type Data ¶
type Data struct { Time int64 `json:"time"` Meta Meta `json:"meta"` Data json.RawMessage `json:"data"` }
Data .
type Devicer ¶
type Devicer interface { GetData() (*Data, error) SaveData(*Data) error GetCfg() (*Cfg, error) GetDefaultCfg() (*Cfg, error) SetCfg(*Cfg) error GetMeta() (*Meta, error) SetMeta(*Meta) error IsRegistered() (bool, error) }
Devicer represents an interface to an abstract device.
Click to show internal directories.
Click to hide internal directories.