playground

package
v0.0.0-...-c66ceb2 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DMXPlaygroundController

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

DMXPlaygroundController to play around and test DMX settings

func NewDMXPlaygroundController

func NewDMXPlaygroundController(logger logging.Logger, controller artnet.Controller, loader api.Loader) *DMXPlaygroundController

NewDMXPlaygroundController returns a new DMXPlaygroundController instance

func (*DMXPlaygroundController) PlayPreset

func (c *DMXPlaygroundController) PlayPreset(r *http.Request, req *PlayOnceRequest, response *api.Empty) error

PlayPreset plays the given Preset once

func (*DMXPlaygroundController) PlayScene

func (c *DMXPlaygroundController) PlayScene(r *http.Request, req *PlayOnceRequest, response *api.Empty) error

PlayScene plays the given Scene once

func (*DMXPlaygroundController) SetChannelValue

func (c *DMXPlaygroundController) SetChannelValue(r *http.Request, value *artnet.ChannelValue, response *api.Empty) error

SetChannelValue sets a single artnet/dmx value

func (*DMXPlaygroundController) SetChannelValues

func (c *DMXPlaygroundController) SetChannelValues(r *http.Request, values *[]artnet.ChannelValue, response *api.Empty) error

SetChannelValues sets multiple artnet/dmx values

type PlayOnceRequest

type PlayOnceRequest struct {
	api.IDBody
	cntl.BarParams
}

PlayOnceRequest is a request body to play a single entity (Scene, Preset) once

Jump to

Keyboard shortcuts

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