casbin

package
v0.0.0-...-6fd7e0b Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrSecurityUserCreatorMissing = errors.Forbidden(reason, "ASecurityUser is required")
	ErrEnforcerMissing            = errors.Forbidden(reason, "Enforcer is missing")
	ErrSecurityParseFailed        = errors.Forbidden(reason, "Security Info fault")
	ErrUnauthorized               = errors.Forbidden(reason, "Unauthorized Access")
)

Functions

func NewCasbinRuleMatcher

func NewCasbinRuleMatcher() selector.MatchFunc

func Server

func Server(opts ...Option) middleware.Middleware

Types

type Option

type Option func(*options)

func WithCasbinData

func WithCasbinData(data *db.CasbinData) Option

Jump to

Keyboard shortcuts

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