Comments (5)
Hi, would have time to make a PR for it? According to RabbitMQ docs, this could be achieved like this:
for severity in severities:
channel.queue_bind(exchange='direct_logs',
queue=queue_name,
routing_key=severity)
(https://www.rabbitmq.com/tutorials/tutorial-four-python.html).
So in the code, apart from switching from string to list in routing key, you would have to iterate over the list in this method: https://github.com/AirHelp/rabbit-amazon-forwarder/blob/master/rabbitmq/consumer.go#L109. I can write some tests for that piece of code :)
from rabbit-amazon-forwarder.
Yeah, it should be as simple as adding a few extra queue binds in a loop like you've mentioned.
I guess the next thing to consider is how do we specify in the mapping file? At the moment routing is a string. Changing that to an array will obviously be a breaking change. Do we add a new option or make a breaking change?
from rabbit-amazon-forwarder.
I guess we could make RoutingKey a generic interface{} and check if its a string or []string as a possible solution?
from rabbit-amazon-forwarder.
Breaking change is not possible at the moment, as this is used on production. routingKeys
could be added as an extra filed to json imho.
from rabbit-amazon-forwarder.
Makes sense! I'll have a stab at this sometime 👍
from rabbit-amazon-forwarder.
Related Issues (16)
- [LAMBDA] Ack HOT 2
- TLS Support HOT 1
- INFO: What is the rationale behind setupExchangesAndQueues HOT 3
- Add Helm chart
- Code does not work with Transient Exchange HOT 2
- Lambda InvocationType
- Request for example for multiple destinations HOT 2
- Getting Failed to declare a queue error
- Typo
- [DepShield] (CVSS 7.5) Vulnerability due to usage of golang.org/x:net:0.0.0-20200520004742-59133d7f0dd7 HOT 1
- [DepShield] (CVSS 7.5) Vulnerability due to usage of golang.org/x:net:0.0.0-20180906233101-161cd47e91fd HOT 1
- [DepShield] (CVSS 7.5) Vulnerability due to usage of golang.org/x:net:0.0.0-20190620200207-3b0461eec859 HOT 1
- [DepShield] (CVSS 5.9) Vulnerability due to usage of golang.org/x:crypto:0.0.0-20190308221718-c2843e01d9a2 HOT 1
- [DepShield] (CVSS 7.5) Vulnerability due to usage of golang.org/x:net:0.0.0-20190404232315-eb5bcb51f2a3 HOT 1
- Is there possibility to setup forwarder to work with localstack?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rabbit-amazon-forwarder.