This is a simple tool for testing RabbitMQ functionality. It allows you to send a message to a specified queue and then read it back, which is useful for verifying the functionality of your RabbitMQ setup.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Go programming language
- RabbitMQ server
- Clone the repository:
git clone https://github.com/MParvin/rabbitmq-tester.git
- Navigate to the project directory:
cd rabbitmq-tester
- Build the program:
go build -o rabbitmq-tester
- Install the program:
go install
- Copy
config_example.yml
toconfig.yml
and edit it. - Specify the RabbitMQ host in the format
amqp://USERNAME:PASSWORD@HOST:PORT
. - If you want to write on a specific queue, you can change the Queue in
config.yml
. - This program will write a specified message to the queue and read it back. You can change this message in
config.yml
.
To send a message to the queue:
rabbitmq-tester send -c config.yml
To read a message from the queue:
rabbitmq-tester receive -c config.yml
To run send and receive commands in one command:
rabbitmq-tester -c config.yml
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.