rbac

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 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 enforcer

func InitCasbinModel

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

InitCasbinModel init casbin model

func NewCasbinModel

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

NewCasbinModel new casbin model

Types

This section is empty.

Jump to

Keyboard shortcuts

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