Documentation ¶
Index ¶
Constants ¶
View Source
const RequestIDKey string = "request_id"
Variables ¶
This section is empty.
Functions ¶
func ChainHandlers ¶
func ChainHandlers(handler http.Handler, middlewares ...Middleware) http.Handler
func EnsureValidToken ¶
EnsureValidToken is a middleware that will check the validity of our JWT.
Types ¶
type BasicAuth ¶
type BasicAuth struct {
// contains filtered or unexported fields
}
func NewBasicAuth ¶
type CustomClaims ¶
type CustomClaims struct {
Scope string `json:"scope"`
}
CustomClaims contains custom data we want from the token.
Click to show internal directories.
Click to hide internal directories.