controllers

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2020 License: GPL-3.0 Imports: 14 Imported by: 0

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

func (*ControllerAction) Start

func (c *ControllerAction) Start()

Start ...

func (*ControllerAction) Stop

func (c *ControllerAction) Stop()

Stop ...

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 ...

func (*ControllerDashboard) Start added in v0.3.0

func (c *ControllerDashboard) Start()

Start ...

func (*ControllerDashboard) Stop added in v0.3.0

func (c *ControllerDashboard) Stop()

Stop ...

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

func (*ControllerMap) Start

func (c *ControllerMap) Start()

Start ...

func (*ControllerMap) Stop

func (c *ControllerMap) Stop()

Stop ...

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 ...

func (*Controllers) Start

func (s *Controllers) Start()

Start ...

func (*Controllers) Stop

func (s *Controllers) Stop()

Stop ...

type Devices

type Devices struct {
	// contains filtered or unexported fields
}

Devices ...

func NewDevices

func NewDevices(metric *metrics.MetricManager) *Devices

NewDevices ...

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) Broadcast added in v0.3.0

func (d *Workflow) Broadcast() (map[string]interface{}, bool)

Broadcast ...

func (*Workflow) GetWorkflowStatus added in v0.3.0

func (d *Workflow) GetWorkflowStatus(client stream.IStreamClient, message stream.Message)

only on request: 'workflow.get.status'

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL