Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var TablenamePrefix = "rbac_"
Functions ¶
This section is empty.
Types ¶
type Permission ¶
type Permission struct { sqlx.Model Name string `json:"name"` Description string `json:"description"` }
func (Permission) TableColumns ¶
func (perm Permission) TableColumns(db *x.DB) []string
func (Permission) TableName ¶
func (Permission) TableName() string
type Role ¶
type Role struct { sqlx.Model Name string `json:"name"` Description string `json:"description"` Permissions []*Permission `json:"permissions" db:"-"` }
type RoleWithInheritances ¶
func (RoleWithInheritances) TableColumns ¶
func (rwp RoleWithInheritances) TableColumns(_ *x.DB) []string
func (RoleWithInheritances) TableName ¶
func (rwp RoleWithInheritances) TableName() string
type RoleWithPermissions ¶
func (RoleWithPermissions) TableColumns ¶
func (rwp RoleWithPermissions) TableColumns(_ *x.DB) []string
func (RoleWithPermissions) TableName ¶
func (rwp RoleWithPermissions) TableName() string
type SubjectWithRoles ¶
func (SubjectWithRoles) TableColumns ¶
func (swr SubjectWithRoles) TableColumns(_ *x.DB) []string
func (SubjectWithRoles) TableName ¶
func (swr SubjectWithRoles) TableName() string
Click to show internal directories.
Click to hide internal directories.