casbin

package
v0.0.0-...-7c3836c Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2019 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.RedisInterface) (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