middleware

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2021 License: MIT Imports: 16 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 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