# Functions
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
InitDbResolver multiple databases support Example usage: dbPool,err := InitDbResolver([]gorm.Dialector{mysql.Open(dsn),mysql.Open(dsn2)},[]string{"casbin1","casbin2"}) a := initAdapterWithGormInstanceByMulDb(t,dbPool,"casbin1","","casbin_rule1") a = initAdapterWithGormInstanceByMulDb(t,dbPool,"casbin2","","casbin_rule2")/*.
NewAdapter is the constructor for Adapter.
NewAdapterByDB creates gorm-adapter by an existing Gorm instance.
NewAdapterByDBUseTableName creates gorm-adapter by an existing Gorm instance and the specified table prefix and table name Example: gormadapter.NewAdapterByDBUseTableName(&db, "cms", "casbin") Automatically generate table name like this "cms_casbin".
No description provided by the author
No description provided by the author
NewFilteredAdapter is the constructor for FilteredAdapter.
NewRbacByGorm 根据gorm初始化casbin.
No description provided by the author
NewRbacByXorm 根据xorm初始化casbin.
No description provided by the author
# Constants
可访问.
可授权.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
菜单.
模块.
操作.
# Structs
Adapter represents the Gorm adapter for policy storage.
CasbinRule casbin规则.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Permission 资源.
No description provided by the author
RoleDefine 角色定义.
# Type aliases
RightType 权限类型.