View Source StepFlow.Amqp.Helpers (StepFlow v1.8.0)

Helpers for AMQP.

Summary

Functions

Link to this function

get_amqp_connection_options()

View Source
Link to this function

get_amqp_connection_url()

View Source

Get AMQP URL from the configuration or environment variables.

  • hostname Setup the hostname of the RabbitMQ service
  • username Setup the username of the RabbitMQ service
  • password Setup the password of the RabbitMQ service
  • port Setup the port of the RabbitMQ service
  • virtual_host Setup 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"},
Link to this function

get_amqp_delivery_mode()

View Source
Link to this function

get_amqp_message_options(options \\ [])

View Source
Link to this function

get_amqp_server_configuration()

View Source