Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Middleware ¶ added in v1.9.0
Middleware function definition
func AuthN ¶ added in v1.9.0
func AuthN(authenticator auth.Authenticator) Middleware
AuthN is a middleware to checks HTTP request credentials
func HTTPSignature ¶ added in v1.9.0
func HTTPSignature(trustStore pubkey.TrustStore) Middleware
HTTPSignature is a middleware to checks HTTP request signature
func Methods ¶ added in v1.9.0
func Methods(methods ...string) Middleware
Methods is a middleware to check that the request use the correct HTTP method
func Tracing ¶
func Tracing(nextRequestID func() string) Middleware
Tracing is a middleware to trace HTTP request
type Middlewares ¶ added in v1.13.0
type Middlewares []Middleware
Middlewares list
func (Middlewares) UseAfter ¶ added in v1.13.0
func (ms Middlewares) UseAfter(m Middleware) Middlewares
UseAfter add a middleware at the end of the middleware chain
func (Middlewares) UseBefore ¶ added in v1.13.0
func (ms Middlewares) UseBefore(m Middleware) Middlewares
UseBefore insert a middleware at the begining of the middleware chain
Click to show internal directories.
Click to hide internal directories.