rest

package
v0.0.1-23 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2015 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StoppedError = errors.New("Listener stopped")

Functions

This section is empty.

Types

type PresetsRouter

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

func NewPresetsRouter

func NewPresetsRouter() *PresetsRouter

func (*PresetsRouter) ApplyScene

func (pr *PresetsRouter) ApplyScene(r *http.Request, w http.ResponseWriter, params martini.Params)

func (*PresetsRouter) DeleteScene

func (pr *PresetsRouter) DeleteScene(r *http.Request, w http.ResponseWriter, params martini.Params)

func (*PresetsRouter) DeleteScenes

func (pr *PresetsRouter) DeleteScenes(r *http.Request, w http.ResponseWriter, params martini.Params)

func (*PresetsRouter) GetRoomPrototype

func (pr *PresetsRouter) GetRoomPrototype(r *http.Request, w http.ResponseWriter, params martini.Params)

func (*PresetsRouter) GetScene

func (pr *PresetsRouter) GetScene(r *http.Request, w http.ResponseWriter, params martini.Params)

func (*PresetsRouter) GetScenes

func (pr *PresetsRouter) GetScenes(r *http.Request, w http.ResponseWriter)

func (*PresetsRouter) GetSitePrototype

func (pr *PresetsRouter) GetSitePrototype(r *http.Request, w http.ResponseWriter)

func (*PresetsRouter) PutScene

func (pr *PresetsRouter) PutScene(r *http.Request, w http.ResponseWriter, params martini.Params)

func (*PresetsRouter) Register

func (pr *PresetsRouter) Register(r martini.Router)

func (*PresetsRouter) UndoScene

func (pr *PresetsRouter) UndoScene(r *http.Request, w http.ResponseWriter, params martini.Params)

type RestServer

type RestServer struct {
	Presets *service.PresetsService
	Log     *logger.Logger
	// contains filtered or unexported fields
}

RestServer Holds stuff shared by all the rest services

func (RestServer) Accept

func (ln RestServer) Accept() (c net.Conn, err error)

func (*RestServer) Start

func (r *RestServer) Start() error

func (*RestServer) Stop

func (r *RestServer) Stop()

Jump to

Keyboard shortcuts

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