package
1.20.0
Repository: https://github.com/artifacthub/hub.git
Documentation: pkg.go.dev

# Functions

NewDispatcher creates a new Dispatcher instance.
NewManager creates a new Manager instance.
NewWorker creates a new Worker instance.
WithNumWorkers allows providing a specific number of workers for a Dispatcher instance.

# Constants

DefaultPayloadContentType represents the default content type used for webhooks notifications.

# Variables

DefaultWebhookPayloadTmpl is the template used for the webhook payload when the webhook uses the default template.
ErrRetryable is meant to be used as a wrapper for other errors to indicate the error is not final and the operation should be retried.

# Structs

Dispatcher handles a group of workers in charge of delivering notifications.
Manager provides an API to manage notifications.
ManagerMock is a mock implementation of the NotificationManager interface.
Services is a wrapper around several internal services used to handle notifications deliveries.
Worker is in charge of delivering notifications to their intended recipients.