middleware

package
v0.0.0-...-4827418 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Enforcer *casbin.Enforcer
)

Functions

func MongoAuthorizationCheck

func MongoAuthorizationCheck() gin.HandlerFunc

Types

type UserClaim

type UserClaim struct {
	jwt.StandardClaims
	Role string `json:"role"`
}

Jump to

Keyboard shortcuts

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