rbac

package
v1.1.42 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Enforcer

func Enforcer() *casbin.SyncedEnforcer

Enforcer casbin 执行器

func InitCasbinModel

func InitCasbinModel(db *gorm.DB) (*casbin.SyncedEnforcer, error)

InitCasbinModel 初始化 casbin 模型

func NewCasbinModel

func NewCasbinModel(db *gorm.DB) (*casbin.SyncedEnforcer, error)

NewCasbinModel 创建 casbin 模型

Types

This section is empty.

Jump to

Keyboard shortcuts

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