Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // MaxQueueBytes is the max memory used by the webhook notifier for inflight // events. Defaults to 100MiB MaxQueueBytes int64 // URLWorkerCount is the max number of concurrent workers that will send // webhooks for a given event. Defaults to 10. URLWorkerCount uint // ClientTimeout is the max time the notifier will wait for a response from // a webhook url before it times out. Defaults to 10s. ClientTimeout time.Duration }
type Notifier ¶
type Notifier struct {
// contains filtered or unexported fields
}
Notifier represents the process that notifies any subscribed webhooks when the relevant events are triggered.
type Option ¶
type Option func(*Notifier)
func WithCheckpoint ¶
func WithCheckpoint(c checkpointer.Checkpoint) Option
func WithLogger ¶
Click to show internal directories.
Click to hide internal directories.