enums

package
v0.0.0-...-e5a474c Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2023 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 MembershipStatus

type MembershipStatus int

MembershipStatus enumerates the potential values for User.Role

const (
	ACTIVE MembershipStatus = iota + 1
	DISABLED
	DELETED
	PENDING
)

func (MembershipStatus) EnumIndex

func (r MembershipStatus) EnumIndex() int

EnumIndex returns the current index of the MembershipStatus enum value

func (MembershipStatus) Stringify

func (r MembershipStatus) Stringify() string

Stringify converts Stringify enum into a string value

type ReadTableIdType

type ReadTableIdType int

ReadTableIdType enumerates the potential values for User.Role

const (
	PRIMARY ReadTableIdType = iota + 1
	WRITE
)

func (ReadTableIdType) EnumIndex

func (r ReadTableIdType) EnumIndex() int

EnumIndex returns the current index of the ReadTableIdType enum value

func (ReadTableIdType) KeyString

func (r ReadTableIdType) KeyString() string

KeyString converts returns a Bson filter value for ReadTableIdType

func (ReadTableIdType) Stringify

func (r ReadTableIdType) Stringify() string

Stringify converts Stringify enum into a string value

type Role

type Role int

Role enumerates the potential values for User.Role

const (
	MEMBER Role = iota + 1
	ADMIN
	ROOT
)

func (Role) EnumIndex

func (r Role) EnumIndex() int

EnumIndex returns the current index of the Role enum value

func (Role) Stringify

func (r Role) Stringify() string

Stringify converts Stringify enum into a string value

type SessionType

type SessionType int

SessionType enumerates the potential values for Token.Type

const (
	USER SessionType = iota + 1
	INTEGRATION
)

func SessionTypeFromString

func SessionTypeFromString(inStr string) SessionType

func (SessionType) EnumIndex

func (w SessionType) EnumIndex() int

EnumIndex returns the current index of the SessionType enum value

func (SessionType) Stringify

func (w SessionType) Stringify() string

Stringify converts SessionType enum into a string value

type ValidationType

type ValidationType int

ValidationType enumerates the potential values for User.Role

const (
	TOKEN ValidationType = iota + 1
	PASSWORD
)

func (ValidationType) EnumIndex

func (v ValidationType) EnumIndex() int

EnumIndex returns the current index of the Role enum value

func (ValidationType) Stringify

func (v ValidationType) Stringify() string

Stringify converts Stringify enum into a string value

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳