Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContextKey ¶
type ContextKey string
ContextKey pipes context key type.
func (ContextKey) String ¶
func (p ContextKey) String() string
type Middleware ¶
Middleware function.
type Pipeline ¶
type Pipeline struct {
// contains filtered or unexported fields
}
Pipeline instance.
func (Pipeline) Build ¶
func (p Pipeline) Build() func(w http.ResponseWriter, r *http.Request)
Build returns a function which can run the pipeline.
func (Pipeline) Use ¶
func (p Pipeline) Use(m Middleware) Pipeline
Use adds a new middleware to the pipeline and returns a new pipeline.
Click to show internal directories.
Click to hide internal directories.