feat: make notification delivery durable

This commit is contained in:
benya
2026-07-23 00:17:38 +03:00
parent 61b1c06205
commit 5d6fa00e94
24 changed files with 710 additions and 136 deletions

View File

@@ -126,7 +126,11 @@ type NotificationDelivery struct {
Destination string `json:"-"`
DestinationMasked string `json:"destination"`
Error string `json:"error,omitempty"`
AttemptCount int `json:"attempt_count"`
MaxAttempts int `json:"max_attempts"`
CreatedAt time.Time `json:"created_at"`
LastAttemptAt *time.Time `json:"last_attempt_at,omitempty"`
NextAttemptAt *time.Time `json:"next_attempt_at,omitempty"`
SentAt *time.Time `json:"sent_at,omitempty"`
}