verification_repository

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2022 License: LGPL-2.1 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeVerificationEmail = "verification_email"
	TypeVerificationText  = "verification_text"
	TypeResetPassword     = "reset_password"
	TypeMagicLink         = "magic_link"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type VerificationRepository

type VerificationRepository interface {
	Create(ctx context.Context, verificationCode *go_nuntio.VerificationCode) (*go_nuntio.VerificationCode, error)
	Get(ctx context.Context, userId string, verificationType go_nuntio.VerificationType) (*go_nuntio.VerificationCode, error)
	IncreaseAttempts(ctx context.Context, userId string, verificationType go_nuntio.VerificationType) error
	Delete(ctx context.Context, userId string, verificationType go_nuntio.VerificationType) error
	BuildIndexes(ctx context.Context) error
}

func New

func New(collection *mongo.Collection) VerificationRepository

Jump to

Keyboard shortcuts

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