feat(notification): add Resend quota gate and waiting-for-reset state

This commit is contained in:
shira committed 2026-10-06 11:50:38 +03:00
1 parent 3b917befa9
commit b856d4ff54
40 files changed
+4116 -48

No files matched your search

+8
View File
@@ -196,6 +196,14 @@ type SendResult struct {
// wait the transport derived from documented provider rules (for example
// the next daily quota reset). It is zero when there is neither.
RetryAfter time.Duration
// QuotaPeriod names the provider quota window that is used up, for
// MailRejectionQuotaExhausted only: domain.MailQuotaPeriodDay or
// domain.MailQuotaPeriodMonth when the provider said which, for example
// Resend's daily_quota_exceeded and monthly_quota_exceeded; empty when it
// did not. The quota gate marks that window instead of guessing it from
// RetryAfter.
QuotaPeriod domain.MailQuotaPeriod
}
// MailSender hands one message to the configured transport.