oneTimeToken

package
v0.0.0-...-1d800d4 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2024 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Import

func Import(ctx context.Context, db *mongo.Database, _, tx pgx.Tx, limit int) error

Types

type CreatedAtField

type CreatedAtField struct {
	CreatedAt time.Time `bson:"createdAt"`
}

type ExpiresAtField

type ExpiresAtField struct {
	ExpiresAt time.Time `bson:"expiresAt"`
}

type ForPQ

type ForPQ struct {
	CreatedAtField `bson:"inline"`
	Data           genericData `bson:"data"`
	ExpiresAtField `bson:"inline"`
	TokenField     `bson:"inline"`
	UseField       `bson:"inline"`
	UsedAtField    `bson:"inline"`
}

type OneTimeToken

type OneTimeToken string

type TokenField

type TokenField struct {
	Token OneTimeToken `bson:"token"`
}

type UseField

type UseField struct {
	Use string `bson:"use"`
}

type UsedAtField

type UsedAtField struct {
	UsedAt time.Time `bson:"usedAt"`
}

Jump to

Keyboard shortcuts

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