casbin

package
v0.2.9 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: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCasbin

func GetCasbin() *service

func KeyMatch3

func KeyMatch3(key1 string, key2 string) bool

func RegexMatch

func RegexMatch(key1 string, key2 string) bool

Types

type Casbin

type Casbin interface {
	GetContext() context.Context
	GetEnforcer() *casbin.Enforcer
}

func NewCasbin

func NewCasbin(cf *config.Config, db *gorm.DB, rds redis.RedisClient) (Casbin, error)

Directories

Path Synopsis
adapter
watcher

Jump to

Keyboard shortcuts

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