Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Final ¶
type Final func(http.HandlerFunc) http.Handler
Final is a middleware which wraps the final http handler func to be executed.
func CreateFinal ¶
func CreateFinal(middlewares ...Intermediate) Final
CreateFinal composes a bigger HTTP application from a series of middlewares. The middlewares are chained in ascending order: Create(A, B, C) will apply A(B(C)).
type Intermediate ¶
Intermediate is a middleware which wraps another middleware.
type IntermediateFunc ¶
type IntermediateFunc func(http.HandlerFunc) http.HandlerFunc
IntermediateFunc is a middleware func which wraps another middleware func.
Click to show internal directories.
Click to hide internal directories.