StepFlow.Amqp.Helpers (StepFlow v0.2.4) View Source
Helpers for AMQP.
Link to this section Summary
Functions
Get AMQP URL from the configuration or environment variables.
Link to this section Functions
Get AMQP URL from the configuration or environment variables.
hostnameSetup the hostname of the RabbitMQ serviceusernameSetup the username of the RabbitMQ servicepasswordSetup the password of the RabbitMQ serviceportSetup the port of the RabbitMQ servicevirtual_hostSetup the virtual host of the RabbitMQ service
Hardcoded example:
config :step_flow, StepFlow.Amqp,
hostname: "example.com",
port: "5678",
username: "mediacloudai",
password: "mediacloudai",
virtual_host: "media_cloud_ai_dev"Environment getter example:
config :step_flow, StepFlow.Amqp,
hostname: {:system, "AMQP_HOSTNAME"},
port: {:system, "AMQP_PORT"},
username: {:system, "AMQP_USERNAME"},
password: {:system, "AMQP_PASSWORD"},
virtual_host: {:system, "AMQP_VIRTUAL_HOST"},