emailactivationservice

package
v0.2.21 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDisabled        = errors.New("email activation resend disabled")
	ErrAlreadyVerified = errors.New("email activation already verified")
	ErrCooldown        = errors.New("email activation resend cooldown")
	ErrDailyLimit      = errors.New("email activation resend daily limit")
)

Functions

func SendActivationEmail

func SendActivationEmail(userEntity *users.EntityComplete) error

Types

type ResendResult

type ResendResult struct {
	RemainingToday    int
	RetryAfterSeconds int64
	DailyLimit        int
}

func Resend

func Resend(userEntity users.EntityComplete) (ResendResult, error)

Jump to

Keyboard shortcuts

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