Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrUndefinedMiddleware ¶
type ErrUndefinedMiddleware struct {
ID string
}
ErrUndefinedMiddleware represents lookup against a middleware that has yet to be defined has failed.
func (ErrUndefinedMiddleware) Error ¶
func (e ErrUndefinedMiddleware) Error() string
type Middleware ¶
Middleware defines the necessary functions to configure and implement a middleware for use on a route.
func Lookup ¶
func Lookup(id string) Middleware
Lookup takes an id and attempts to return the corresponding middleware if the middleware is undefined nil is returned.
Click to show internal directories.
Click to hide internal directories.