middleware

package
v0.9.17 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TokenNotExist = errors.New("token not exist")
)

Functions

func CORS

func CORS(c *gin.Context)

CORS 跨域中间件

func Favicon

func Favicon(ctx *gin.Context)

Favicon filter /favicon.ico

func JWT

func JWT(claims jwt.Claims) gin.HandlerFunc

JWT gin的jwt中间件

func Recover

func Recover(ctx *gin.Context)

Recover

func RequestLog

func RequestLog(c *gin.Context)

RequestLog gin的请求日志中间件

func Trace

func Trace(c *gin.Context)

Types

This section is empty.

Jump to

Keyboard shortcuts

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