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 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 Signature ¶ added in v1.16.0
func Signature(ts truststore.TrustStore) Middleware
Signature is a middleware to checks HTTP request signature
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
Source Files ¶
Click to show internal directories.
Click to hide internal directories.