quickndirty-mq

command module
v0.0.0-...-94c769f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2019 License: MIT Imports: 7 Imported by: 0

README

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:

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL