middlewares

package
v0.0.0-...-4e22d16 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authorize

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

func CORSMiddleware

func CORSMiddleware() gin.HandlerFunc

func NewAuthMiddleware

func NewAuthMiddleware(jwtService jwt.JWTService, isAdmin bool) gin.HandlerFunc

Types

type AuthMiddleware

type AuthMiddleware struct {
	// contains filtered or unexported fields
}

func (*AuthMiddleware) Handle

func (m *AuthMiddleware) Handle(ctx *gin.Context)

Jump to

Keyboard shortcuts

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