Replies: 7 comments
-
I had a conversation with the original author on this topic back in 2017: streadway/amqp#164 (comment) Not sure if it's still relevant, but thought I'd point it out. |
Beta Was this translation helpful? Give feedback.
-
The conversation in streadway/amqp#164 (comment) seems relevant to me. Making this package return interfaces will be a breaking change; we are happy to consider reasonable breaking changes, however, in this case, the solution proposed by streadway is valid, and I don't think we should introduce a breaking change here. |
Beta Was this translation helpful? Give feedback.
-
how you guys test your code being unable to mock? |
Beta Was this translation helpful? Give feedback.
-
@kewinbrand I'd have to see specific examples, but you can define a bunch of wrappers in your code as described here. That might get a bit verbose to maintain and the |
Beta Was this translation helpful? Give feedback.
-
Hi folks, and @kewinbrand |
Beta Was this translation helpful? Give feedback.
-
Hi all, this one seems more a discussion at this point, let's convert it to a discussion while we decide the best way to go. |
Beta Was this translation helpful? Give feedback.
-
Besides github.com/NeowayLabs/wabbit, I noticed there's also https://github.com/wagslane/go-rabbitmq, which is described as a "wrapper of rabbitmq/amqp091-go that provides reconnection logic and sane defaults". Might be worth looking at before making any changes. |
Beta Was this translation helpful? Give feedback.
-
I’d love to see go interfaces as a part of this package. It does make everyone’s like miserable to write unit tests when you have integration with amqp.
I can take care or that.
Beta Was this translation helpful? Give feedback.
All reactions