middleware

package
v0.0.0-...-c9be414 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var OperationLogChan = make(chan *system.OperationLog, 30)

操作日志channel

Functions

func CORSMiddleware

func CORSMiddleware() gin.HandlerFunc

CORS跨域中间件

func CasbinMiddleware

func CasbinMiddleware() gin.HandlerFunc

Casbin中间件, 基于RBAC的权限访问控制模型

func InitAuth

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

初始化jwt中间件

func OperationLogMiddleware

func OperationLogMiddleware() gin.HandlerFunc

func RateLimitMiddleware

func RateLimitMiddleware(fillInterval time.Duration, capacity int64) 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