middlewares

package
v3.8.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2023 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JWT

func JWT(next http.Handler, secret string, claims jwt.MapClaims) http.Handler

JWT is a middleware function to check the authorization JWT Bearer token header of the request

func Recover added in v3.3.0

func Recover(next http.HandlerFunc) http.HandlerFunc

Recover is a middleware function to defer and return an error response in case of panic during the handler execution

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL