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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRouter

func NewRouter(s service) *router.Router

NewRouter creates a new router for this service

Types

type Controller

type Controller struct{}

Controller handles requests

func (*Controller) CreateScene

CreateScene persists a new scene

func (*Controller) DeleteScene

DeleteScene deletes a scene and associated actions

func (*Controller) ListScenes

ListScenes lists all scenes in the database

func (*Controller) ReadScene

ReadScene returns the scene with the given ID

func (*Controller) SetScene

SetScene emits an event to trigger the scene to be set asynchronously

Jump to

Keyboard shortcuts

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