Documentation ¶
Index ¶
Constants ¶
View Source
const ( SeqCol = "seq" RoleCol = "role" PermCol = "perm" DescCol = "desc" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DescRecord ¶
func NewDesc ¶
func NewDesc() *DescRecord
type PermRecord ¶
type PermRecord struct { Id int Perm struct { PermName string Resource struct { Type string Url string } } `bson:"_id,omitempty"` }
func NewPerm ¶
func NewPerm() *PermRecord
type RoleRecord ¶
type RoleRecord struct { Id int RoleName string `bson:"_id,omitempty"` RoleType int RoleDesc string GrantedRoles []string GrantedPermIds []int IndirectGrants struct { Scn int Roles []string PermIds []int } }
func NewRoleRecord ¶
func NewRoleRecord() *RoleRecord
Click to show internal directories.
Click to hide internal directories.