middleware

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CORS

func CORS(c *gin.Context)

CORS 跨域中间件

func GetClaims added in v1.0.1

func GetClaims(ctx *gin.Context) (jwt.MapClaims, bool)

GetClaims get claims from context

func JWT

func JWT(jwtAuth auth.Jwt) gin.HandlerFunc

JWT gin的jwt中间件

func Recover

func Recover(ctx *gin.Context)

Recover

func RequestLog

func RequestLog(logger *log.Logger) gin.HandlerFunc

RequestLog gin的请求日志中间件

func Trace added in v0.7.10

func Trace(traceHeader string) gin.HandlerFunc

Types

This section is empty.

Jump to

Keyboard shortcuts

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