rabbitmq

package
v0.0.0-...-c6cd810 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AmqpConsumer

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

AmqpConsumer encapsulates data related to consuming rabbitmq messages.

func NewAmqpConsumer

func NewAmqpConsumer(url string, exchangeName string, routingKey string, queueName string) *AmqpConsumer

NewAmqpConsumer creates a new AmqpConsumer.

func (*AmqpConsumer) CloseChannelAndConnection

func (c *AmqpConsumer) CloseChannelAndConnection()

func (*AmqpConsumer) Connect

func (c *AmqpConsumer) Connect()

func (*AmqpConsumer) Consume

func (c *AmqpConsumer) Consume() (<-chan amqp.Delivery, error)

type MessageConsumer

type MessageConsumer interface {
	Consume() (<-chan amqp.Delivery, error)
	Connect()
	CloseChannelAndConnection()
}

MessageConsumer encapsulates messages needed to consume rabbitmq messages.

Jump to

Keyboard shortcuts

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