ExRabbitMQ v2.10.0 ExRabbitMQ.Connection.Config View Source
A stucture holding the necessary information about a connection to a RabbitMQ node.
defstruct [:username, :password, :host, :port, :vhost, :heartbeat, :reconnect_after]
Connection configuration example:
# :connection is this connection's configuration name
config :exrabbitmq, :my_connection_config,
# username for connecting to rabbitmq (distinct per connection configuration block)
username: "username",
# password for connecting to rabbitmq(distinct per connection configuration block)
password: "password",
# host where RabbitMQ is running
host: "rabbitmq.host.my",
# port where RabbitMQ is listening (optional, default: 5672)
port: 5672,
# the virtual host to connect to (optional, default: /)
vhost: "/",
# the connection's heartbeat RabbitMQ in milliseconds (optional, default: 1000)
heartbeat: 1000,
# the delay after which a connection wil be re-attempted after having been dropped (optional, default: 2000)
reconnect_after: 2000,