Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ControllerAction ¶
type ControllerAction struct {
*ControllerCommon
}
ControllerAction ...
func NewControllerAction ¶
func NewControllerAction(common *ControllerCommon) *ControllerAction
NewControllerAction ...
func (*ControllerAction) DoAction ¶
func (c *ControllerAction) DoAction(client stream.IStreamClient, message stream.Message)
Stream
type ControllerCommon ¶
type ControllerCommon struct {
// contains filtered or unexported fields
}
ControllerCommon ...
func NewControllerCommon ¶
func NewControllerCommon(adaptors *adaptors.Adaptors, endpoint *endpoint.Endpoint, scripts *scripts.ScriptService, core *core.Core, gate *gate_client.GateClient, metric *metrics.MetricManager, mqtt *mqtt.Mqtt, zigbee2mqtt *zigbee2mqtt.Zigbee2mqtt, stream *stream.StreamService) *ControllerCommon
NewControllerCommon ...
func (*ControllerCommon) Err ¶
func (c *ControllerCommon) Err(client stream.IStreamClient, message stream.Message, err error)
Err ...
type ControllerDashboard ¶ added in v0.3.0
type ControllerDashboard struct { *ControllerCommon // contains filtered or unexported fields }
ControllerDashboard ...
func NewControllerDashboard ¶ added in v0.3.0
func NewControllerDashboard(common *ControllerCommon) *ControllerDashboard
NewControllerDashboard ...
func (*ControllerDashboard) Broadcast ¶ added in v0.3.0
func (c *ControllerDashboard) Broadcast(param interface{})
Broadcast ...
type ControllerMap ¶
type ControllerMap struct { *ControllerCommon // contains filtered or unexported fields }
ControllerMap ...
func NewControllerMap ¶
func NewControllerMap(common *ControllerCommon) *ControllerMap
NewControllerMap ...
func (*ControllerMap) Broadcast ¶
func (c *ControllerMap) Broadcast(param interface{})
method callable from metric service
type Controllers ¶
type Controllers struct { Map *ControllerMap Action *ControllerAction Dashboard *ControllerDashboard }
Controllers ...
func NewControllers ¶
func NewControllers(adaptors *adaptors.Adaptors, scripts *scripts.ScriptService, core *core.Core, endpoint *endpoint.Endpoint, gate *gate_client.GateClient, metrics *metrics2.MetricManager, mqtt *mqtt.Mqtt, zigbee2mqtt *zigbee2mqtt.Zigbee2mqtt, stream *stream.StreamService) *Controllers
NewControllers ...
type Devices ¶
type Devices struct {
// contains filtered or unexported fields
}
Devices ...
func (*Devices) Broadcast ¶
func (d *Devices) Broadcast(cursor metrics.MapElementCursor) (map[string]interface{}, bool)
Broadcast ...
func (*Devices) GetDevicesStates ¶
func (d *Devices) GetDevicesStates(client stream.IStreamClient, message stream.Message)
only on request: 'map.get.devices'
type MapElement ¶
type MapElement struct { Id int64 `json:"id"` StatusId int64 `json:"status_id"` Options interface{} `json:"options"` ElementName string `json:"element_name"` }
MapElement ...
type Workflow ¶ added in v0.3.0
type Workflow struct {
// contains filtered or unexported fields
}
Workflow ...
func NewWorkflow ¶ added in v0.3.0
func NewWorkflow(metric *metrics.MetricManager) *Workflow
NewWorkflow ...
func (*Workflow) GetWorkflowStatus ¶ added in v0.3.0
func (d *Workflow) GetWorkflowStatus(client stream.IStreamClient, message stream.Message)
only on request: 'workflow.get.status'
Click to show internal directories.
Click to hide internal directories.