An open API service indexing awesome lists of open source software.

https://github.com/mbobakov/spray-rabbit

Send json-messenges from rabbit to different targets
https://github.com/mbobakov/spray-rabbit

cli-utility elasticsearch golang networking rabbitmq utility

Last synced: 5 months ago
JSON representation

Send json-messenges from rabbit to different targets

Awesome Lists containing this project

README

          

# spray-rabbit
'''spray-rabbit''' is tool for sending JSON-messages from Rabbit-MQ to different destinations like TCP-socket, ElasticSearch and etc.

### Install
``` go get https://github.com/mbobakov/spray-rabbit```

or download via releases page

### Implemented outputs(Sprays)
- [Console](https://github.com/mbobakov/spray-rabbit/console-spray/). Print message as Info-log event
- [TCP](https://github.com/mbobakov/spray-rabbit/tcp-spray/). Send messages to TCP-socket. Messages delimited by '\n'
- [ElasticSearch](https://github.com/mbobakov/spray-rabbit/elastic-spray/). Send messages via bulk-API

### Configuration
For now all configuration is placed in one file. File must be in [HCL-syntax](https://github.com/hashicorp/hcl)

[Example config](https://github.com/mbobakov/spray-rabbit/config_example.hcl)

Format of configuration for the input:

rabbitmq {
uri AMQP connection URL like "amqp://user:password@mq-na:5672/userhost"
exchange Rabbitmq Exchange for binding fetching queue
queue Rabbitmq Queue for fetching messages
key Rabbitmq Routing key
ack Shoud we ack fetch for Rabbitmq
prefetch_count Prefetch count
auto_delete Delete the Rabbitmq queue if no consumers on it
spay_to <[] of string> Send messages via this outputs
}

### TODO
- Tests
- More clear documentation

### Contibuting
Go >= 1.7 is requirement. This tool use [dep](https://github.com/golang/dep) for dependency management. Pull Request are welcome. ;)