Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
// Enforcer ...
Enforcer *casbin.SyncedEnforcer
)
Functions ¶
func EnforceRoute ¶ added in v0.5.0
func EnforceRoute(role *model.UserRole, resourceID string, req *http.Request, enforcer casbin.IEnforcer) (bool, error)
EnforceRoute 验证web路由
func MyDomKeyMatch2Func ¶
func MyDomKeyMatch2Func(args ...interface{}) (interface{}, error)
MyDomKeyMatch2Func 定义域KeyMatch2
func MyRegexMatchFunc ¶
func MyRegexMatchFunc(args ...interface{}) (interface{}, error)
MyRegexMatchFunc 定义域RegexMatch
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.