Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Func ¶
Func implements the Middleware interface on a function of type func(http.Handler, http.ResponseWriter, *http.Request).
type Middleware ¶
type Middleware interface {
Next(http.Handler) http.HandlerFunc
}
Middleware allows to chain multiple HTTP handlers together.
func Chain ¶
func Chain(middlewares ...Middleware) Middleware
Chain chains one or many middlewares into a single middleware.
Click to show internal directories.
Click to hide internal directories.