permissions

package
v0.0.0-...-aac5cb1 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const PermMaxLength int = 128

Variables

View Source
var Permissions []*Permission

Functions

func LoadGPermissions

func LoadGPermissions()

func ValidName

func ValidName(name string) bool

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

Jump to

Keyboard shortcuts

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