sendkey

package module
v0.0.0-...-4ce15e1 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2022 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClaimedEntry

type ClaimedEntry struct {
	EntryID      uuid.UUID `json:"entryId"`
	Name         string    `json:"name"`
	SentByUserID uuid.UUID `json:"sentByUserId"`
	SentToEmail  string    `json:"sentToEmail"`
	ClaimedAtUTC time.Time `json:"claimedAtUtc"`
}

type Entry

type Entry struct {
	ID              uuid.UUID `json:"id"`
	Name            string    `json:"name"`
	SentByUserID    uuid.UUID `json:"sentByUserId"`
	SentToEmail     string    `json:"sentToEmail"`
	Nonce           []byte    `json:"-"`
	Value           []byte    `json:"-"`
	InvalidAttempts int       `json:"invalidAttempts"`
	CreatedAtUTC    time.Time `json:"createdAtUtc"`
	ExpiresAtUTC    time.Time `json:"expiresAtUtc"`
}

type ExpiredEntry

type ExpiredEntry struct {
	EntryID         uuid.UUID `json:"entryId"`
	Name            string    `json:"name"`
	SentByUserID    uuid.UUID `json:"sentByUserId"`
	SentToEmail     string    `json:"sentToEmail"`
	TooManyAttempts bool      `json:"tooManyAttempts"`
	ExpiredAtUTC    time.Time `json:"expiredAtUtc"`
}

type RefreshToken

type RefreshToken struct {
	ID           uuid.UUID `json:"id"`
	UserID       uuid.UUID `json:"userId"`
	Token        string    `json:"token"`
	CreatedAtUTC time.Time `json:"createdAtUtc"`
	ExpiresAtUTC time.Time `json:"expiresAtUtc"`
}

type User

type User struct {
	ID            uuid.UUID `json:"id"`
	Email         string    `json:"email"`
	EmailVerified bool      `json:"emailVerified"`
	FirstName     string    `json:"firstName"`
	LastName      string    `json:"lastName"`
	Password      string    `json:"-"`
	CreatedAtUTC  time.Time `json:"createdAtUtc"`
}

Directories

Path Synopsis
cmd
api
cli
internal
app
pkg

Jump to

Keyboard shortcuts

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