Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadControllers ¶
func LoadControllers(app *App, controllers ...*Controller)
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
An app is a varible that contains API controllers
func NewDefaultApp ¶
func NewDefaultApp() *App
type Controller ¶
type Controller struct { Path string HandlerFuncs HandlerData }
A controllers has a path and a possible Handler Function by each http method
func (*Controller) AddHandleFunc ¶
func (c *Controller) AddHandleFunc(method rest.RestMethod, handlerFunc HandlerFunc)
type HandlerData ¶
type HandlerData map[rest.RestMethod]HandlerFunc
Represent the methods that a controller can execute
Click to show internal directories.
Click to hide internal directories.