Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chain ¶
type Chain interface {
	Append(middlewares ...Middleware) Chain
	Prepend(middlewares ...Middleware) Chain
	Then(h http.Handler) http.Handler
	ThenFunc(fn http.HandlerFunc) http.Handler
}
    Chain defines a chain of middleware.
func New ¶
func New(middlewares ...Middleware) Chain
New creates a new Chain, memorizing the given list of middleware middlewares. New serves no other function, middlewares are only called upon a call to Then() or ThenFunc().
 Click to show internal directories. 
   Click to hide internal directories.