casbinx

package
v0.0.0-...-83d3498 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Casbin = &Casbinx{}

Functions

func Enforce

func Enforce(rvals ...interface{}) (bool, error)

func ParamsMatch

func ParamsMatch(fullNameKey1 string, key2 string) bool

func ParamsMatchFunc

func ParamsMatchFunc(args ...interface{}) (interface{}, error)

Types

type Casbinx

type Casbinx struct {
	// contains filtered or unexported fields
}

func (*Casbinx) Enforce

func (casbinx *Casbinx) Enforce(rvals ...interface{}) (bool, error)

func (*Casbinx) Enforcex

func (casbinx *Casbinx) Enforcex(rvals ...interface{}) (bool, error)

func (*Casbinx) LoadPolicy

func (casbinx *Casbinx) LoadPolicy() error

func (*Casbinx) SetUp

func (casbinx *Casbinx) SetUp(dsn string) error

func (*Casbinx) SetUp2

func (casbinx *Casbinx) SetUp2(sql *sql.DB) error

Jump to

Keyboard shortcuts

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