rabbitmqhandler

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2025 License: Apache-2.0 Imports: 5 Imported by: 1

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

	Handler RabbitMQMessageHandler
	// contains filtered or unexported fields
}

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
	QueueAutoDelete    bool
	Exclusive          bool
	NoLocal            bool
	NoWait             bool
	Args               amqp.Table
	Exchange           string
	ExcahngeRoutingKey string
}

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