package
Version:
v1.1.42
Opens a new window with list of versions in this module.
Published: Dec 8, 2024
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func Enforcer() *casbin.SyncedEnforcer
Enforcer casbin 执行器
func InitCasbinModel(db *gorm.DB) (*casbin.SyncedEnforcer, error)
InitCasbinModel 初始化 casbin 模型
func NewCasbinModel(db *gorm.DB) (*casbin.SyncedEnforcer, error)
NewCasbinModel 创建 casbin 模型
Source Files
¶
Click to show internal directories.
Click to hide internal directories.