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 *models.VerificationCode) (*models.VerificationCode, error) Get(ctx context.Context, userId string, verificationType models.VerificationType) (*models.VerificationCode, error) IncreaseAttempts(ctx context.Context, userId string, verificationType models.VerificationType) error Delete(ctx context.Context, userId string, verificationType models.VerificationType) error BuildIndexes(ctx context.Context) error }
func New ¶
func New(collection *mongo.Collection) VerificationRepository
Click to show internal directories.
Click to hide internal directories.