middleware

package
v0.0.0-...-1bcc78e Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CasbinUserID = "CasbinUID"
)
View Source
const (
	TraceID = "centaur_trace_id"
)

Variables

This section is empty.

Functions

func CORSMiddleware

func CORSMiddleware() gin.HandlerFunc

CORSMiddleware will return middleware which handles cross-origin requests.

func Casbin

func Casbin(e *casbin.Enforcer) gin.HandlerFunc

func TraceMiddleware

func TraceMiddleware() gin.HandlerFunc

TraceMiddleware 实现了一个跟踪ID中间件

Types

This section is empty.

Jump to

Keyboard shortcuts

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