sdk-go/samples/amqp
github-actions[bot] ebd5561496
chore: update dependencies
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-06-16 03:33:59 +00:00
..
receiver Adding SPDX Authors headers using Apache 2.0. (#681) 2021-04-22 10:53:09 -07:00
sender Adding SPDX Authors headers using Apache 2.0. (#681) 2021-04-22 10:53:09 -07:00
README.md moving location of packages for submodules (#519) 2020-05-27 08:49:56 -07:00
go.mod chore: update dependencies 2025-06-16 03:33:59 +00:00
go.sum chore: update dependencies 2025-06-16 03:33:59 +00:00

README.md

AMQP Samples

These samples require an AMQP 1.0 broker or router to be running.

One option is http://qpid.apache.org/components/dispatch-router/index.html It can be installed via dnf or apt, or from source: https://qpid.apache.org/packages.html Run qdrouterd and the samples will work without any additional configuration.

Sample configuration

The environment variable AMQP_URL can be set to indicate the location of the broker and the AMQP node address. It has this form:

amqp://user:pass@host:port/node

The default if AMQP_URL is not set is:

amqp://localhost:5672/test

Note: setting user:pass in a URL is not recommended in production, it is done here to simplify using the samples.