rabbitmqhandler

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RabbitMQListner

type RabbitMQListner struct {
	Client    rabbitmqclient.RabbitMQConnection
	QueueName string
	Consumer  string
	AutoAck   bool
	Exclusive bool
	NoLocal   bool
	NoWait    bool
	Args      amqp.Table
	Handler   RabbitMQMessageHandler
}

func (RabbitMQListner) Listen

func (r RabbitMQListner) Listen(hangup chan *amqp.Error)

type RabbitMQListnerConfig

type RabbitMQListnerConfig struct {
	Client    rabbitmqclient.RabbitMQConnection
	QueueName string
	Consumer  string
	AutoAck   bool
	Exclusive bool
	NoLocal   bool
	NoWait    bool
	Args      amqp.Table
}

type RabbitMQMessageHandler

type RabbitMQMessageHandler interface {
	HandleMessage(ctx context.Context, message amqp.Delivery) error
}

Jump to

Keyboard shortcuts

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