Documentation ¶
Index ¶
- func AddCreatePolicy(policyEnforcer *casbin.Enforcer, user string, url string)
- func AddDeletePolicy(policyEnforcer *casbin.Enforcer, user string, url string)
- func AddGetByIDPolicy(policyEnforcer *casbin.Enforcer, user string, url string)
- func AddGetPolicy(policyEnforcer *casbin.Enforcer, user string, url string)
- func AddUpdatePolicy(policyEnforcer *casbin.Enforcer, user string, url string)
- func InitPolicy(gormClient *gorm.DB) (*casbin.Enforcer, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCreatePolicy ¶
AddCreatePolicy is used to add policy for specified user.
func AddDeletePolicy ¶
AddDeletePolicy is used to add policy for specified user.
func AddGetByIDPolicy ¶
AddGetByIDPolicy is used to add policy for specified user.
func AddGetPolicy ¶
AddGetPolicy is used to add policy for specified user.
func AddUpdatePolicy ¶
AddUpdatePolicy is used to add policy for specified user.
func InitPolicy ¶
InitPolicy is used to initialise all policy manager needs to function.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.