types

package
v0.19.15 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	Id                uuid.UUID `json:"id"`
	Email             string    `json:"email"`
	FirstName         string    `json:"firstname"`
	LastName          string    `json:"lastname"`
	Number            string    `json:"number"`
	VerificationCodes Codes     `json:"verification_codes"`
	UpdatedAt         time.Time `json:"updated_at"`
	CreatedAt         time.Time `json:"created_at"`
}

type Codes

type Codes struct {
	Email  string `json:"email"`
	Mobile string `json:"mobile"`
	MFA    string `json:"mfa"`
}

type Login

type Login struct {
	Id        string    `json:"id"`
	AccountId uuid.UUID `json:"account_id"`
	Type      LoginType `json:"login_type"`
	Data      []byte    `json:"data"`
}

type LoginType

type LoginType int
const (
	INVALID LoginType = iota
	INTERNAL
	OAUTH
	OIDC
)

func LoginTypeFromString

func LoginTypeFromString(loginType string) LoginType

func (LoginType) String

func (l LoginType) String() string

Jump to

Keyboard shortcuts

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