SYMBOL INDEX (44 symbols across 6 files) FILE: global.go function Register (line 9) | func Register(name string, fc Checker) { function Allow (line 14) | func Allow(mode PermissionMode, roles ...string) *Permission { function Deny (line 19) | func Deny(mode PermissionMode, roles ...string) *Permission { function Get (line 24) | func Get(name string) (Checker, bool) { function Remove (line 29) | func Remove(name string) { function Reset (line 34) | func Reset() { function MatchedRoles (line 39) | func MatchedRoles(req *http.Request, user interface{}) []string { function HasRole (line 44) | func HasRole(req *http.Request, user interface{}, roles ...string) bool { function NewPermission (line 49) | func NewPermission() *Permission { FILE: permission.go type PermissionMode (line 9) | type PermissionMode constant Create (line 13) | Create PermissionMode = "create" constant Read (line 15) | Read PermissionMode = "read" constant Update (line 17) | Update PermissionMode = "update" constant Delete (line 19) | Delete PermissionMode = "delete" constant CRUD (line 21) | CRUD PermissionMode = "crud" type Permission (line 28) | type Permission struct method Concat (line 50) | func (permission *Permission) Concat(newPermission *Permission) *Permi... method Allow (line 77) | func (permission *Permission) Allow(mode PermissionMode, roles ...stri... method Deny (line 90) | func (permission *Permission) Deny(mode PermissionMode, roles ...strin... method HasPermission (line 103) | func (permission Permission) HasPermission(mode PermissionMode, roles ... function includeRoles (line 34) | func includeRoles(roles []string, values []string) bool { FILE: permissioner.go type Permissioner (line 4) | type Permissioner interface function ConcatPermissioner (line 9) | func ConcatPermissioner(ps ...Permissioner) Permissioner { type permissioners (line 19) | type permissioners method HasPermission (line 22) | func (ps permissioners) HasPermission(mode PermissionMode, roles ...in... FILE: role.go constant Anyone (line 10) | Anyone = "*" type Checker (line 14) | type Checker function New (line 17) | func New() *Role { type Role (line 22) | type Role struct method Register (line 27) | func (role *Role) Register(name string, fc Checker) { method NewPermission (line 40) | func (role *Role) NewPermission() *Permission { method Allow (line 49) | func (role *Role) Allow(mode PermissionMode, roles ...string) *Permiss... method Deny (line 54) | func (role *Role) Deny(mode PermissionMode, roles ...string) *Permissi... method Get (line 59) | func (role *Role) Get(name string) (Checker, bool) { method Remove (line 65) | func (role *Role) Remove(name string) { method Reset (line 70) | func (role *Role) Reset() { method MatchedRoles (line 75) | func (role *Role) MatchedRoles(req *http.Request, user interface{}) (r... method HasRole (line 87) | func (role *Role) HasRole(req *http.Request, user interface{}, roles .... FILE: role_manager.go type Roler (line 4) | type Roler interface FILE: roles_test.go function TestAllow (line 9) | func TestAllow(t *testing.T) { function TestDeny (line 29) | func TestDeny(t *testing.T) { function TestCRUD (line 53) | func TestCRUD(t *testing.T) { function TestAll (line 72) | func TestAll(t *testing.T) { function TestCustomizePermission (line 94) | func TestCustomizePermission(t *testing.T) {