Documentation ¶
Index ¶
- func NewServer(ctrl *controller.Controller) http.Handler
- type Server
- func (server *Server) HandleOverrideClear(context *ctx.Context) (interface{}, int, error)
- func (server *Server) HandleOverrideOff(context *ctx.Context) (interface{}, int, error)
- func (server *Server) HandleOverrideOn(context *ctx.Context) (interface{}, int, error)
- func (server *Server) HandleStatus(context *ctx.Context) (interface{}, int, error)
- func (server *Server) HandleZoneOverrideClear(context *ctx.Context) (interface{}, int, error)
- func (server *Server) HandleZoneOverrideOff(context *ctx.Context) (interface{}, int, error)
- func (server *Server) HandleZoneOverrideOn(context *ctx.Context) (interface{}, int, error)
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 ¶
HandleOverrideClear clears the controller override.
func (*Server) HandleOverrideOff ¶
HandleOverrideOff sets the controller override to off.
func (*Server) HandleOverrideOn ¶
HandleOverrideOn sets the controller override to on.
func (*Server) HandleStatus ¶
HandleStatus returns the controller, which marshalls safely into the current state of the controller system.
func (*Server) HandleZoneOverrideClear ¶
HandleZoneOverrideClear clears the controller override.
func (*Server) HandleZoneOverrideOff ¶
HandleZoneOverrideOff sets the controller override to off.
Click to show internal directories.
Click to hide internal directories.