Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller func(Context) httprouter.Handle
Controller is a function that accepts a context and returns a handle.
type Endpoint ¶
type Endpoint struct { Path string Method string Before []Middleware RequiredArgs []string OptionalArgs []string Control Controller }
Endpoint is an endpoint on the server.
func (Endpoint) Handler ¶
func (e Endpoint) Handler() httprouter.Handle
Handler joins the middleware with the controller.
type Middleware ¶
type Middleware func(Context, httprouter.Handle) httprouter.Handle
Middleware is a function that accepts a context and a handler and returns a handle.
Click to show internal directories.
Click to hide internal directories.