kk_access

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

README

kk_access

a library based on https://github.com/casbin/casbin to control user access

what type of access control

ABAC (Attribute Based Access Control)

how to use

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckBatchEnforce

func CheckBatchEnforce(e *casbin.Enforcer, requests [][]any) ([]bool, error)

func CheckEnforce

func CheckEnforce(e *casbin.Enforcer, sub, obj, act any) (bool, error)

func NewEnforcer

func NewEnforcer(params ...any) (*casbin.Enforcer, error)

func NewModelFromString

func NewModelFromString(str string) (model.Model, error)

func NewMySQLAdapter

func NewMySQLAdapter() (*xormadapter.Adapter, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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