server

package
v0.0.0-...-6c85ac7 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(ctrl *controller.Controller) http.Handler

NewServer returns a fully initialized http.Handler.

Types

type Server

type Server struct {
	Controller *controller.Controller
}

Server holds access to the supplied controller.

func (*Server) HandleOverrideClear

func (server *Server) HandleOverrideClear(context *ctx.Context) (interface{}, int, error)

HandleOverrideClear clears the controller override.

func (*Server) HandleOverrideOff

func (server *Server) HandleOverrideOff(context *ctx.Context) (interface{}, int, error)

HandleOverrideOff sets the controller override to off.

func (*Server) HandleOverrideOn

func (server *Server) HandleOverrideOn(context *ctx.Context) (interface{}, int, error)

HandleOverrideOn sets the controller override to on.

func (*Server) HandleStatus

func (server *Server) HandleStatus(context *ctx.Context) (interface{}, int, error)

HandleStatus returns the controller, which marshalls safely into the current state of the controller system.

func (*Server) HandleZoneOverrideClear

func (server *Server) HandleZoneOverrideClear(context *ctx.Context) (interface{}, int, error)

HandleZoneOverrideClear clears the controller override.

func (*Server) HandleZoneOverrideOff

func (server *Server) HandleZoneOverrideOff(context *ctx.Context) (interface{}, int, error)

HandleZoneOverrideOff sets the controller override to off.

func (*Server) HandleZoneOverrideOn

func (server *Server) HandleZoneOverrideOn(context *ctx.Context) (interface{}, int, error)

HandleZoneOverrideOn sets the controller override to on.

Jump to

Keyboard shortcuts

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