middleware

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: MulanPSL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const JwtIdentityKey = "userinfo"

Variables

This section is empty.

Functions

func Cors

func Cors(context *gin.Context)

Cors 同源跨域配置

func GetJWT

func GetJWT() (*jwt.GinJWTMiddleware, error)

func LogRus

func LogRus() gin.HandlerFunc

Types

type AuthForm

type AuthForm struct {
	Key string `json:"key" binding:"required"`
}

AuthForm 验证表单

Jump to

Keyboard shortcuts

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