feat(notification): add Resend quota gate and waiting-for-reset state
This commit is contained in:
1 parent
3b917befa9
commit
b856d4ff54
40 files changed
+4116
-48
No files matched your search
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user