rabbitmq

package module
v0.0.0-...-b6ddc33 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2021 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(rabbitMqAddress string) (*amqp.Connection, *amqp.Channel)

Connects to a RabbitMQ instance

func DeclareQueues

func DeclareQueues(ch *amqp.Channel, queueName string) (amqp.Queue, amqp.Queue)

Declares two queues: - "queueName" contains orders from the Orchestrator to the module - "queueName-response" contains response messages from the module to the Orchestrator

func OnMessageReceive

func OnMessageReceive(ch *amqp.Channel, queueName string, callback Callback) chan bool

func ResponseQueueName

func ResponseQueueName(queueName string) string

Given a queue name, returns its response queue name

Types

type Callback

type Callback func() error

Jump to

Keyboard shortcuts

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