Documentation ¶
Index ¶
Constants ¶
View Source
const (
ComponentName = "rabbitmq-dispatcher"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dispatcher ¶
type Dispatcher struct { BrokerIngressURL string SubscriberURL string // Upon failure to deliver to sink, should the RabbitMQ messages be requeued. // For example, if the DeadLetterSink has been configured, then do not Requeue. Requeue bool MaxRetries int BackoffDelay time.Duration BackoffPolicy eventingduckv1.BackoffPolicyType WorkerCount int }
func (*Dispatcher) ConsumeFromQueue ¶
func (d *Dispatcher) ConsumeFromQueue(ctx context.Context, channel wabbit.Channel, queueName string) error
ConsumeFromQueue consumes messages from the given message channel and queue. When the context is cancelled a context.Canceled error is returned.
Click to show internal directories.
Click to hide internal directories.