Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPController ¶
type HTTPController interface {
/*
* Return the Routes that are managed by this Controller.
*/
Routes() (http.Handler, error)
/*
* Sets the Base URL (i.e. /devices/ or /users/ or / ...)
*/
SetBase(url string) HTTPController
/*
* Return The Base URL (Needed for Setting Up routing)
*/
Base() string
}
* Controllers need to respond with the routes they handle. * This means all routing information is self contained.
type HTTPControllers ¶
type HTTPControllers []HTTPController
func (*HTTPControllers) Routes ¶
func (t *HTTPControllers) Routes() http.Handler
* Return the standard http.Handler for use with the standard net/http
Click to show internal directories.
Click to hide internal directories.