package
0.1.3
Repository: https://github.com/xwc1125/xwc1125-pkg.git
Documentation: pkg.go.dev

# 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
菜单.
模块.
操作.

# Variables

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 角色定义.

# Interfaces

No description provided by the author
OwnerType 持有者类型.

# Type aliases

RightType 权限类型.