Documentation ¶ Index ¶ type Role func (this *Role) Can(role string) bool func (this Role) Implications() []string type Roles func (roles Roles) Can(name string) bool func (roles *Roles) Scan(value interface{}) error func (roles Roles) Value() (driver.Value, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Role ¶ type Role struct { Name string Label string Implies Roles ValidRoles map[string]*Role } func (*Role) Can ¶ func (this *Role) Can(role string) bool func (Role) Implications ¶ func (this Role) Implications() []string type Roles ¶ type Roles []Role func (Roles) Can ¶ func (roles Roles) Can(name string) bool func (*Roles) Scan ¶ func (roles *Roles) Scan(value interface{}) error func (Roles) Value ¶ func (roles Roles) Value() (driver.Value, error) Source Files ¶ View all Source files roles.go Click to show internal directories. Click to hide internal directories.