Documentation ¶
Index ¶
- func Gzip(inner http.Handler) http.Handler
- func IncomingWebhookAuth(inner http.Handler) http.Handler
- func IsAdmin(next http.Handler) http.Handler
- func Logger(next http.Handler) http.Handler
- func MockAuth(inner http.Handler) http.Handler
- func ProxyAuth(inner http.Handler) http.Handler
- type Middleware
- func Auth(method string) Middleware
- func BasicAuth(location string) Middleware
- func Cors(allowOrigin string) Middleware
- func Methods(methods ...string) Middleware
- func OpenIDConnectJWTAuth(authority string) Middleware
- func RateLimiting(name string, conf config.RateLimiting) Middleware
- func Tracing(nextRequestID func() string) Middleware
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IncomingWebhookAuth ¶
IncomingWebhookAuth is a middleware to checks HTTP request with API key of an incoming webhook
Types ¶
type Middleware ¶
Middleware function definition
func BasicAuth ¶
func BasicAuth(location string) Middleware
BasicAuth is a middleware to checks HTTP request credentials from Basic AuthN method
func Cors ¶
func Cors(allowOrigin string) Middleware
Cors is a middleware to enabling CORS on HTTP requests
func Methods ¶
func Methods(methods ...string) Middleware
Methods is a middleware to check that the request use the correct HTTP method
func OpenIDConnectJWTAuth ¶
func OpenIDConnectJWTAuth(authority string) Middleware
OpenIDConnectJWTAuth is a middleware to checks HTTP request with a valid JWT
func RateLimiting ¶
func RateLimiting(name string, conf config.RateLimiting) Middleware
RateLimiting is a middleware to limite usage of an endpoint
func Tracing ¶
func Tracing(nextRequestID func() string) Middleware
Tracing is a middleware to trace HTTP request
Click to show internal directories.
Click to hide internal directories.