Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fanout ¶
type Fanout struct {
Notifiers []delivery.Notifier
InitialBackoff time.Duration
MaxBackoff time.Duration
// contains filtered or unexported fields
}
Fanout sends each notification event to every configured notifier.
func (*Fanout) NotificationStatus ¶
NotificationStatus returns aggregate and per-target delivery state.
type None ¶
type None struct{}
None is a notifier that intentionally sends nothing.
func (None) NotificationStatus ¶
NotificationStatus reports an idle notification state.
type RetryError ¶
RetryError wraps notification failures and tells the scheduler when to retry.
func (*RetryError) Error ¶
func (e *RetryError) Error() string
Error returns the wrapped error string.
func (*RetryError) NotificationStats ¶
func (e *RetryError) NotificationStats() (delivered, failed, pending int)
NotificationStats returns retry batch stats.
func (*RetryError) RetryAfter ¶
func (e *RetryError) RetryAfter() time.Duration
RetryAfter returns the delay before the next retry attempt.
Click to show internal directories.
Click to hide internal directories.