spray-rabbit

command module
v0.0.0-...-cca97c1 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2017 License: MIT Imports: 19 Imported by: 0

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. Print message as Info-log event
  • TCP. Send messages to TCP-socket. Messages delimited by '\n'
  • ElasticSearch. Send messages via bulk-API
Configuration

For now all configuration is placed in one file. File must be in HCL-syntax

Example config

Format of configuration for the input:

rabbitmq {
    uri             <string>        AMQP connection URL like "amqp://user:password@mq-na:5672/userhost"
    exchange        <string>        Rabbitmq Exchange for binding fetching queue
    queue           <string>        Rabbitmq Queue for fetching messages
    key             <string>        Rabbitmq Routing key
    ack             <bool>          Shoud we ack fetch for Rabbitmq
    prefetch_count  <int>           Prefetch count
    auto_delete     <bool>          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 for dependency management. Pull Request are welcome. ;)

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package elasticspray is spray realization This package sends messages to ElasticSearch
Package elasticspray is spray realization This package sends messages to ElasticSearch
Package tcpspray sends messages to TCP endpoints.
Package tcpspray sends messages to TCP endpoints.

Jump to

Keyboard shortcuts

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