listener

package
v0.0.0-...-4a75ffe Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractXDeathData

func ExtractXDeathData(headers amqp.Table) (amqp.Table, int64, string, bool)

ExtractXDeathData extract the x-death header information from the message headers

func Republish

func Republish(ch *amqp.Channel, retryQueue string, msg amqp.Delivery) error

Republish a message in the queue

Types

type Listener

type Listener struct {
	// contains filtered or unexported fields
}

Listener listens for messages in the DLX and retries them

func Create

func Create(amqpConn, dlxName string, maxRetries int64, store storage.MessageStore) (*Listener, error)

Create and setup a new Listener

func (*Listener) Run

func (l *Listener) Run()

Run the listener and listens for messages incoming in the dlx and reprocess them having in count the x-death header

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL