Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RBAC ¶
type RBAC struct {
// contains filtered or unexported fields
}
RBAC represents Role-based access control authorization policy.
func (RBAC) HasPermission ¶
func (a RBAC) HasPermission(user entity.User, permission permission.Permission) (bool, error)
HasPermission checks whether an user has a the given permission.
Click to show internal directories.
Click to hide internal directories.