middleware

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Auth     *jwt.GinJWTMiddleware
	Verifier security.Verifier
)
View Source
var Middlewares = &sync.Map{}

Functions

func GetMiddlewares

func GetMiddlewares(keys ...string) gin.HandlersChain

GetMiddlewares get middlewares by keys

func GetVerify

func GetVerify(ctx *gin.Context) security.Verifier

GetVerify 获取当前登录用户

func Init

func Init()

Types

This section is empty.

Jump to

Keyboard shortcuts

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