mailqueue

package
v1.26.8 Latest Latest
Warning

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

Go to latest
Published: May 21, 2026 License: MPL-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// EmailRateLimit is the number of emails a single recipient can trigger
	// within the rolling EmailRateLimitPeriod window.
	EmailRateLimit = 6
	// EmailRateLimitPeriod is the rolling window used by the per-recipient
	// rate limiter on email-triggering actions.
	EmailRateLimitPeriod = time.Hour
	// EmailRateLimitReset is the bucket reset interval used by the limiter.
	EmailRateLimitReset = 10 * time.Minute
)

Variables

This section is empty.

Functions

func Build

func Build() fx.Option

Types

type Queuer

type Queuer struct {
	// contains filtered or unexported fields
}

func (*Queuer) Queue

func (q *Queuer) Queue(ctx context.Context, address mail.Address, name string, subject string, intros []string, actions []mailtemplate.Action) error

func (*Queuer) RetryNow added in v1.26.8

func (q *Queuer) RetryNow(ctx context.Context, id email_queue.ID) (*email_queue.Email, error)

Jump to

Keyboard shortcuts

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