handler

package
v0.0.0-...-eb599cc Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRouter

func NewRouter(c controller) *router.Router

NewRouter returns a router with appropriate handlers set

Types

type Controller

type Controller struct {
	Universe *universe.Universe
}

Controller handles requests

func (*Controller) GetDevice

func (c *Controller) GetDevice(r *request, body *dmxdef.GetDeviceRequest) (*dmxdef.GetDeviceResponse, error)

GetDevice returns the current state of a fixture

func (*Controller) UpdateDevice

func (c *Controller) UpdateDevice(r *request, body *dmxdef.UpdateDeviceRequest) (*dmxdef.UpdateDeviceResponse, error)

UpdateDevice modifies fixture properties

Jump to

Keyboard shortcuts

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