Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Middleware ¶
type Middleware interface {
Method() func(http.Handler) http.Handler
// Status returns whether the middleware is enabled
Status() bool
// Experimental returns whether the middleware is experimental
Experimental() bool
// Name returns the identification of the middleware
Name() string
}
func NewMiddleware ¶
func NewMiddleware(method func(http.Handler) http.Handler, name string, status bool, experimental bool, opts ...MiddlewareWrapper) Middleware
NewMiddleware initializes a new local middleware for the server.
type MiddlewareWrapper ¶
type MiddlewareWrapper func(r Middleware) Middleware
MiddlewareWrapper wraps a middleware with extra functionality. It is passed in when creating a new middleware.
Click to show internal directories.
Click to hide internal directories.