middleware

package
v0.0.0-...-d5480cd Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2024 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GroupWhiteList = []string{
	"/user/profile",
	"/update/check",
	"/update/db",
}

group白名单

Functions

func CasbinHandler

func CasbinHandler() gin.HandlerFunc

func Cors

func Cors() gin.HandlerFunc

Cors 直接放行所有跨域请求并放行所有 OPTIONS 方法

func CorsByRules

func CorsByRules() gin.HandlerFunc

CorsByRules 按照配置处理跨域请求

func JWTAuth

func JWTAuth() gin.HandlerFunc

func LoadTls

func LoadTls() gin.HandlerFunc

func OperationRecord

func OperationRecord() gin.HandlerFunc

func ZapLogger

func ZapLogger(logger *zap.Logger) 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