Conduit v0.12.1 API Reference

Modules

A message queue framework, with support for middleware and multiple adapters

Defines the behavior for an adapter

Defines a Conduit Broker

Provides macros for setting up a message broker, subscribing to queues, publishing messages, and pipelines for processing messages

Configuration for a publication

Configuration for a subscription

Configuration for an exchange

Configuration for a queue

Formats and parses a message body based on the content type given

Handles converting to and from erlang binary

Handles converting to and from JSON

Handles converting a message body to and from Text

Encodes and decodes a message body based on the content encoding given

Handles encoding to and from gzip

Does nothing to the body of the message

The Conduit message

Defines the plug behaviour

Rescues any exception and acks the message

A module that can be used to build plugs

Assigns a UUID for the correlation ID of the message if one isn’t present and always assigns it to the logger metadata

Assigns a created_at date to the message

Assigns name of app to created_by of the message

Publishes messages that were nacked or raised an exception to a dead letter destination

Decodes the message body based on the content encoding

Encodes the message body based on the content encoding

Formats the message body based on the content type

Logs an incoming message and how long it takes to process it

Logs an outgoing message and how long it takes to process it

Provides Conduit.Message methods as plugs

Assigns a UUID for the message ID of the message if one isn’t present and always assigns it to the logger metadata

Rescues any exception and nacks the message

Parses the message body based on the content type

Retries messages that were nacked or raised an exception

Provides functions and macros for handling incoming messages

Helpers for testing receiving and publishing messages from a message queue

This module is intended to be used instead of a normal adapter in tests

Exceptions

Exception raised when no adapter is configured

Exception raised when broker is incorrectly defined

Exception raised calling a publish route that is undefined

Exception raised calling a subscribe route that is undefined

Exception raised when the content type is not recognized

Exception raised when the content encoding is not recognized

Exception raised when module is used as plug, but cannot be found

Mix Tasks

Generates a broker for sending and receiving messages

Generates a subscriber for messages