QuickNDirty-MQ
QuickNDirty-MQ is a stupidly simple Apache ActiveMQ client designed for testing connections to servers.
This should work on all servers implementing the AMQP protocol, such as Amazon MQ.
Compile
Simply download, grab dependencies, and compile.
go get github.com/incpac/quickndirty-mq
dep ensure
go build -ldflags "-X main.Version=0.1" -o qndmq
Running
For a full list of commands and flags see qndmq help
Watching the queue
qndmq watch -connection amqp://myamqpserver.example.com:5672 -u username -p password -q queue
Pushing a message to the queue
qndmq post -connection amqp://username:passwordmyamqpserver.example.com:5672 -q queue Hello World!
Environment variables
An alternative to passing through configuration via flags is to preset it as environment variables.
export QNDMQ_CONNECTION=amqp://myamqpserver.example.com:5672
export QNDMQ_USERNAME=username
export QNDMQ_PASSWORD=password
export QNDMQ_QUEUE=queue
qndmq post Hello World!
Credits
This project is made possible by the following awesome people: