Documentation ¶
Index ¶
- Constants
- func DeletePermission(permissionString string) error
- func DeleteRole(sub string) error
- func DeleteUser(sub string) error
- func GetEnforcer() *casbin.Enforcer
- func RequiresPermissions(permissions ...string) gin.HandlerFunc
- func RoleSub(roleId int64) string
- func UpdateGroupingPolicies(userSub string, roleSubs []string) error
- func UpdateSubPolicies(sub string, permissionStrings []string) error
- func UserSub(userId int64) string
Constants ¶
View Source
const ModelString = `` /* 225-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func DeletePermission ¶
func DeleteRole ¶
func DeleteUser ¶
func GetEnforcer ¶
func GetEnforcer() *casbin.Enforcer
func RequiresPermissions ¶
func RequiresPermissions(permissions ...string) gin.HandlerFunc
func UpdateGroupingPolicies ¶
func UpdateSubPolicies ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.