 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Chain ¶
type Chain struct {
	// contains filtered or unexported fields
}
    A Chain is a middleware chain use for http request processing.
func NewChain ¶
func NewChain(middlewares ...Middleware) Chain
NewChain creates a new Middleware chain. The chain will call the Middleware in the order provided.
type GenerateIDFunc ¶
type GenerateIDFunc func() string
type Middleware ¶
func RequireCert ¶
func RequireCert() Middleware
RequireCert is used to ensure that a verified TLS client certificate was used for authentication.
func WithRequestID ¶
func WithRequestID(generator GenerateIDFunc) Middleware
 Click to show internal directories. 
   Click to hide internal directories.