Documentation
¶
Overview ¶
Package chain provides types and functions to compose net/http compatible middlewares. It is completely borrowed from alice(https://godoc.org/github.com/justinas/alice)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chain ¶
type Chain struct {
// contains filtered or unexported fields
}
Chain keeps a stack of net/http middlewares
func (Chain) Append ¶
func (c Chain) Append(m ...MiddlewareFn) Chain
Append takes a new http.Handler, appends and returns a new chain from the existing one. The given middleware chains are added to the end of request flow.
Click to show internal directories.
Click to hide internal directories.