messageBus

package
v0.0.0-...-e569bb0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect() (*amqp.Connection, error)

Connect establishes a connection to the RabbitMQ instance

func ConsumeMessages

func ConsumeMessages(queue string, channel *amqp.Channel) (<-chan amqp.Delivery, error)

ConsumeMessages subscribes and waits for messages in the queue

func CreateChannel

func CreateChannel(connection *amqp.Connection) (*amqp.Channel, error)

CreateChannel create a channel from the given connection

func CreateExchange

func CreateExchange(channel *amqp.Channel) error

CreateExchange creates an events exchange

func CreateMessage

func CreateMessage(body string) amqp.Publishing

CreateMessage takes in our message body and creates a message to used sent in our queue

func CreateQueueAndBind

func CreateQueueAndBind(channel *amqp.Channel, queue string) error

CreateQueueAndBind declares a queue and binds it to our channel

func EstablishPublishQueue

func EstablishPublishQueue(channel *amqp.Channel) error

EstablishPublishQueue create exchange & links queue

func PublishMessage

func PublishMessage(message amqp.Publishing, channel *amqp.Channel) error

PublishMessage sends our RabbitMQ messages to the queue

Types

This section is empty.

Jump to

Keyboard shortcuts

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