Expand description

This is a library for working with routines related to the message broker, or more specifically, messages sent and received to/from RabbitMQ.

Modules

This submodule describes models for messages that can be enqueued on RabbitMQ. Their default queueing format is serialized as JSON strings.

Constants

AUTH_PASS 🔒
Default password for authentication on RabbitMQ.
AUTH_USER 🔒
Default user for authentication on RabbitMQ.
Names of default queues that should be present on RabbitMQ, for each tenant.

Functions

Builds an AMQP protocol URI for RabbitMQ. If vhost is an empty string, assumes that the connection string should be to the default virtual host.
Checks whether RabbitMQ can be accessed or not.
Attempts to create a single connection to RabbitMQ. If the vhost is set to None, assumes that the connection should be established to the default virtual host.
Creates a connection pool to RabbitMQ. If the vhost is set to None, assumes that the connection should be established to the default virtual host.
Generate connection URL to a vhost configuration API.
Creates a virtual host on RabbitMQ. Virtual hosts are created by performing a PUT request on the management API. If the request does not return an error, returns an optional boolean. This result should be None if the request was unsuccessful, or true or false depending on whether the virtual host was created or not. This value is true if the request results in a 201 status, or false if the result had a status of 204.

Type Definitions

Represents a pool of connections to RabbitMQ.