Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cfg ¶
type Cfg struct { Log log.Logger Ctrl svc.Ctrl Metric *metric.Metric PubChan chan<- *model.Cfg PortRPC uint32 PortREST uint32 CfgProvider CfgProvider DataProvider DataProvider Retry time.Duration PublicKey string PrivateKey string TerminationTimeout time.Duration }
Cfg is used to initialize an instance of api.
type CfgProvider ¶
type CfgProvider interface { GetInitCfg(m *model.Meta) (*model.Cfg, error) GetCfg(devID string, t model.Type) (*model.Cfg, error) SetCfg(devID string, t model.Type, c *model.Cfg) error }
CfgProvider is a contract for the configuration provider.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.