rabbitmq

package
v0.0.0-...-fb28d3e Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// Type consumer type
	Type = "RabbitMQ"

	// ReconnectRabbitMQInterval time to reconnect
	ReconnectRabbitMQInterval = 10
)

Variables

This section is empty.

Functions

func CreateConsumer

func CreateConsumer(entry config.RabbitEntry, rabbitConnector connector.RabbitConnector) consumer.Client

CreateConsumer creates consumer from string map

Types

type Consumer

type Consumer struct {
	ConnectionURL   string
	ExchangeName    string
	QueueName       string
	RoutingKeys     []string
	RabbitConnector connector.RabbitConnector
	// contains filtered or unexported fields
}

Consumer implementation or RabbitMQ consumer

func (Consumer) Name

func (c Consumer) Name() string

Name consumer name

func (Consumer) Start

func (c Consumer) Start(forwarder forwarder.Client, check chan bool, stop chan bool) error

Start start consuming messages from Rabbit queue

Jump to

Keyboard shortcuts

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