Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrFailedToProduceRetryMessage = errors.New("failed to produce retry message") ErrFailedToAckMessage = errors.New("failed to ack message") )
Functions ¶
This section is empty.
Types ¶
type MessagePublisher ¶
type MessagePublisher interface {
ProduceRaw(ctx context.Context, key interface{}, msg *amqp.Publishing) error
Close()
}
type NoOpMessagePublisher ¶
type NoOpMessagePublisher struct{}
func (*NoOpMessagePublisher) Close ¶
func (nop *NoOpMessagePublisher) Close()
func (*NoOpMessagePublisher) ProduceRaw ¶
func (nop *NoOpMessagePublisher) ProduceRaw(ctx context.Context, key interface{}, msg *amqp.Publishing) error
type RetryPublisher ¶
type RetryPublisher struct {
MessagePublisher MessagePublisher
}
func NewRetryPublisherConfig ¶
func NewRetryPublisherConfig(options ...RetryPublisherConfigOption) *RetryPublisher
type RetryPublisherConfigOption ¶
type RetryPublisherConfigOption func(*RetryPublisher)
func WithMessagePublisher ¶
func WithMessagePublisher(publisher MessagePublisher) RetryPublisherConfigOption
Click to show internal directories.
Click to hide internal directories.