Documentation
¶
Overview ¶
Package notification contains the immutable email payload stored in the outbox
Index ¶
Constants ¶
const VerificationKind = "email_verification"
VerificationKind identifies the supported notification payload type
Variables ¶
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
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 ¶
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