Documentation ¶
Index ¶
Constants ¶
View Source
const PermMaxLength int = 128
Variables ¶
View Source
var Permissions []*Permission
Functions ¶
func LoadGPermissions ¶
func LoadGPermissions()
Types ¶
type Permission ¶
type Permission struct {
// contains filtered or unexported fields
}
func PermissionByName ¶
func PermissionByName(name string) *Permission
func RegisterPermission ¶
func RegisterPermission(name string, isByDefault bool, children ...*Permission) *Permission
func (*Permission) Children ¶
func (p *Permission) Children() []*Permission
func (*Permission) IsByDefault ¶
func (p *Permission) IsByDefault() bool
func (*Permission) Name ¶
func (p *Permission) Name() string
Click to show internal directories.
Click to hide internal directories.