role

package
v0.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL