notification

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: MIT Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package notification contains the immutable email payload stored in the outbox

Index

Constants

View Source
const VerificationKind = "email_verification"

VerificationKind identifies the supported notification payload type

Variables

View Source
var ErrMisconfigured = errors.New("email provider rejected sender credentials or configuration")

ErrMisconfigured marks a delivery refused because of sender credentials or configuration, so it can succeed once fixed

View Source
var ErrRejected = errors.New("email rejected by provider")

ErrRejected marks a delivery the provider refused permanently, so retrying cannot help

Functions

This section is empty.

Types

type Email

type Email struct {
	From    string   `json:"from"`
	To      []string `json:"to"`
	Subject string   `json:"subject"`
	HTML    string   `json:"html"`
	Text    string   `json:"text"`
}

Email is rendered once, before enqueueing, so retries have identical provider payloads

type RateLimitError

type RateLimitError struct {
	RetryAfter time.Duration
}

RateLimitError marks a delivery the provider throttled. RetryAfter is zero when the provider gave no usable hint

func (*RateLimitError) Error

func (e *RateLimitError) Error() string

Error implements error without provider details, which may contain recipient data

Jump to

Keyboard shortcuts

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