casbin

package
v1.2.15 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 License: Apache-2.0 Imports: 10 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 clean rules

func GetRolesForUser

func GetRolesForUser(uid uint) []string

GetRolesForUser get user's roles

func Instance

func Instance() *casbin.Enforcer

Instance casbin instance

func Remove added in v1.1.2

func Remove() error

Remove del config file

Types

This section is empty.

Jump to

Keyboard shortcuts

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