Documentation
¶
Index ¶
- Constants
- Variables
- func RetryCountFor(e *ziggurat.Event) int
- type ARetry
- func (r *ARetry) Consume(ctx context.Context, h ziggurat.Handler) error
- func (r *ARetry) DSReplayHandler(ctx context.Context) http.Handler
- func (r *ARetry) DSViewHandler(ctx context.Context) http.Handler
- func (r *ARetry) DeleteQueuesAndExchanges(ctx context.Context, queueName string) error
- func (r *ARetry) InitPublishers(ctx context.Context) error
- func (r *ARetry) Publish(ctx context.Context, event *ziggurat.Event, queueKey string, queueType string, ...) error
- func (r *ARetry) Retry(ctx context.Context, event *ziggurat.Event, queueKey string) error
- type Opts
- type QueueConfig
- type Queues
Constants ¶
View Source
const ( QueueTypeDL = "dlq" QueueTypeInstant = "instant" QueueTypeDelay = "delay" )
View Source
const KeyRetryCount = "rabbitmqAutoRetryCount"
Variables ¶
View Source
var ErrCleanShutdown = errors.New("clean shutdown of rabbitmq streams")
View Source
var ErrPublisherNotInit = errors.New("auto retry publish error: publisher not initialized, please call the InitPublisher method")
Functions ¶
func RetryCountFor ¶
func RetryCountFor(e *ziggurat.Event) int
Types ¶
type ARetry ¶
type ARetry struct {
// contains filtered or unexported fields
}
func (*ARetry) DeleteQueuesAndExchanges ¶
type Opts ¶
type Opts func(r *ARetry)
func WithConnectionTimeout ¶
func WithLogger ¶
func WithLogger(l ziggurat.StructuredLogger) Opts
func WithPassword ¶
func WithUsername ¶
type QueueConfig ¶
type Queues ¶
type Queues []QueueConfig
Click to show internal directories.
Click to hide internal directories.