package
Version:
v1.1.26
Opens a new window with list of versions in this module.
Published: Nov 13, 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 enforcer
func InitCasbinModel(db *gorm.DB) (*casbin.SyncedEnforcer, error)
InitCasbinModel init casbin model
func NewCasbinModel(db *gorm.DB) (*casbin.SyncedEnforcer, error)
NewCasbinModel new casbin model
Source Files
¶
Click to show internal directories.
Click to hide internal directories.