Documentation ¶
Index ¶
- Constants
- func AddRequestIdToContextAndResponse(next http.Handler) http.Handler
- func CorsHandling(next http.Handler) http.Handler
- func ErrorHandler(ctx context.Context, w http.ResponseWriter, r *http.Request, msg string, ...)
- func PanicRecoverer(next http.Handler) http.Handler
- func RequestLogger(next http.Handler) http.Handler
- func TokenValidator(next http.Handler) http.Handler
- func UnauthenticatedError(ctx context.Context, w http.ResponseWriter, r *http.Request, details string, ...)
- func WriteJson(ctx context.Context, w http.ResponseWriter, v interface{})
- type AllClaims
- type CustomClaims
Constants ¶
View Source
const TraceIdHeader = "X-Request-Id"
Variables ¶
This section is empty.
Functions ¶
func ErrorHandler ¶
func UnauthenticatedError ¶
Types ¶
type AllClaims ¶
type AllClaims struct { jwt.RegisteredClaims CustomClaims }
Click to show internal directories.
Click to hide internal directories.