common

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnknownAuthLevel = errors.New("auth level unknown")

Functions

This section is empty.

Types

type AuthLevel

type AuthLevel int

AuthLevel is a type for storing a users auth level

const (
	// Unverified is the auth level that represents a user who has not yet verified their email
	Unverified AuthLevel = iota
	// Applicant is the auth level that represents a user who has not yet received and accepted an invite
	Applicant
	// Attendee is the auth level that represents a user who has received and accepted an invite
	Attendee
	// Volunteer is the auth level that represents a user who has access to volunteer features
	Volunteer
	// Organiser is the auth level that represents a user who has access to all features
	Organiser
)

func (AuthLevel) MarshalJSON

func (al AuthLevel) MarshalJSON() ([]byte, error)

func (*AuthLevel) UnmarshalJSON

func (al *AuthLevel) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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