user

package
v0.0.0-...-c52fe67 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2020 License: GPL-3.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 Role

type Role string
const (
	RoleUndefined  Role = "undefined"
	RoleAdmin      Role = "admin"
	RoleDeveloper  Role = "developer"
	RoleSuperAdmin Role = "super_admin"
	RoleManager    Role = "manager"
	RoleSupport    Role = "support"
	RoleAccountant Role = "accountant"
	RoleStore      Role = "store"
	RolePublisher  Role = "publisher"
)

func NewRole

func NewRole(v string) Role

func (Role) String

func (t Role) String() string

type RoleArray

type RoleArray []Role

func NewRoleArrayFromStrings

func NewRoleArrayFromStrings(items []string) RoleArray

func (RoleArray) Has

func (r RoleArray) Has(role Role) bool

Jump to

Keyboard shortcuts

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