permissions

package
v0.0.0-...-9d9a824 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2019 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PermissionLevel

type PermissionLevel string
const (
	SuperAdminRequired PermissionLevel = "super_admin"
	AdminRequired      PermissionLevel = "admin"
	Unauthenticated    PermissionLevel = "unauthenticated"
	AuthRequired       PermissionLevel = "authenticated"
)

each level responds to a set of web services/privilege that a role has access to

type PermissionLevels

type PermissionLevels []PermissionLevel

func (PermissionLevels) Contains

func (perms PermissionLevels) Contains(perm PermissionLevel) bool

whether or not a slice of permission levels contains certain permission

Jump to

Keyboard shortcuts

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