ExRabbitMQAdmin.Client (ex_rabbitmq_admin v0.1.4)
View SourceMacro for creating RabbitMQ HTTP API client.
Configuration
Some options, such as e.g. base_url
can be read from config. If you want to use
this macro in a module, you can add a corresponding entry in your config.exs
file
to configure the client.
# config.ex
config :my_app, MyApp.RabbitClient,
base_url: "https://rabbitmq.example.com:15672",
username: "guest",
password: "guest"
Parameters
otp_app
- Namespace used to look up configuration values such asbase_url
and others.
Example
defmodule MyApp.RabbitClient do
use ExRabbitMQAdmin.Client, otp_app: :my_app
end