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
- Host: GitHub
- URL: https://github.com/mbobakov/spray-rabbit
- Owner: mbobakov
- License: mit
- Created: 2017-02-17T09:05:25.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-17T12:42:43.000Z (over 9 years ago)
- Last Synced: 2024-11-15T12:35:19.680Z (over 1 year ago)
- Topics: cli-utility, elasticsearch, golang, networking, rabbitmq, utility
- Language: Go
- Size: 885 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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. ;)