handlers

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Actions

type Actions struct {
	Actions *logic.ActionService `inject:""`
	Logic   *logic.Logic         `inject:""`
	Router  *websocket.Router    `inject:""`
	Clients *websocket.Clients   `inject:""`
}

func (*Actions) Run

func (wsa *Actions) Run(msg *websocket.Message)

func (*Actions) Start

func (wsa *Actions) Start()

type Devices

type Devices struct {
	Devices *serverprotocol.Devices `inject:""`
	Nodes   *serverprotocol.Nodes   `inject:""`
	Router  *websocket.Router       `inject:""`
	Clients *websocket.Clients      `inject:""`
}

Devices contains the websocket handler for devices

func (*Devices) SendSingleDevice

func (d *Devices) SendSingleDevice(device interface{})

SendSingleDevice sends an update to webgui clients with a single device update

func (*Devices) Start

func (d *Devices) Start()

Start starts the websocket handler for devices by register its routes and client connect handler

type Nodes

type Nodes struct {
	Nodes   *serverprotocol.Nodes `inject:""`
	Router  *websocket.Router     `inject:""`
	Clients *websocket.Clients    `inject:""`
}

func (*Nodes) RunCommand

func (wh *Nodes) RunCommand(msg *websocket.Message)

func (*Nodes) SendAllNodes

func (wh *Nodes) SendAllNodes()

func (*Nodes) SendDisconnectedNode

func (wh *Nodes) SendDisconnectedNode(uuid string)

func (*Nodes) SendSingleNode

func (wh *Nodes) SendSingleNode(uuid string)

func (*Nodes) Start

func (wh *Nodes) Start()

type Rules

type Rules struct {
	Logic   *logic.Logic       `inject:""`
	Router  *websocket.Router  `inject:""`
	Clients *websocket.Clients `inject:""`
}

func (*Rules) Start

func (wsr *Rules) Start()

type Schedule

type Schedule struct {
	Scheduler *logic.Scheduler   `inject:""`
	Router    *websocket.Router  `inject:""`
	Clients   *websocket.Clients `inject:""`
}

func (*Schedule) SchedulerAddTask

func (wh *Schedule) SchedulerAddTask(msg string)

func (*Schedule) SchedulerEditTask

func (wh *Schedule) SchedulerEditTask(msg *websocket.Message)

func (*Schedule) SchedulerRemoveTask

func (wh *Schedule) SchedulerRemoveTask(msg *websocket.Message)

func (*Schedule) Start

func (wh *Schedule) Start()

Jump to

Keyboard shortcuts

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