Documentation ¶ Index ¶ type Role func (this *Role) Can(role string) bool type Roles func (roles Roles) ByName() map[string]Role 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 `json:"name"` Label string `json:"label"` Implies Roles `json:"-"` } func (*Role) Can ¶ func (this *Role) Can(role string) bool type Roles ¶ type Roles []Role func (Roles) ByName ¶ added in v0.0.4 func (roles Roles) ByName() map[string]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.