casbin

package
v1.1.1-alpha28 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2021 License: Apache-2.0 Imports: 11 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearCasbin

func ClearCasbin(v int, p ...string) error

ClearCasbin 清除权限

func GetEnforcer

func GetEnforcer() *casbin.Enforcer

GetEnforcer 获取 casbin.Enforcer

func GetRolesForUser

func GetRolesForUser(uid uint) []string

GetRolesForUser 获取角色

func Instance

func Instance() *casbin.Enforcer

Instance casbin 单例

Types

This section is empty.

Jump to

Keyboard shortcuts

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