Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoggingNotifier ¶
type LoggingNotifier struct {
// contains filtered or unexported fields
}
LoggingNotifier adds logging to any notifier
func WithLogging ¶
func WithLogging(notifier notif.Notifier, logger *log.Logger) *LoggingNotifier
WithLogging wraps a notifier with logging.
Should be placed right after base notifier as the Name() of prior notifier is used when logging.
func (*LoggingNotifier) Name ¶
func (l *LoggingNotifier) Name() string
type RetryNotifier ¶
type RetryNotifier struct {
// contains filtered or unexported fields
}
RetryNotifier adds retry logic to any notifier
func WithRetry ¶
func WithRetry(notifier notif.Notifier, maxRetries int, retryDelay, maxRetryDelay time.Duration) *RetryNotifier
WithRetry wraps a notifier with retry logic
func (*RetryNotifier) Name ¶
func (r *RetryNotifier) Name() string
Click to show internal directories.
Click to hide internal directories.