wagslane / go-rabbitmq

A wrapper of streadway/amqp that provides reconnection logic and sane defaults
https://blog.boot.dev/golang/connecting-to-rabbitmq-in-golang-easy/
MIT License
768 stars 125 forks source link

Simpler bindings / Declare process | Part 1 #81

Closed h44z closed 1 year ago

h44z commented 2 years ago

Split #80 into two parts. This part contains:

wagslane commented 1 year ago

To make sure I understand - This primarily accomplishes 2 things:

  1. You can opt to not declare exchanges and queues
  2. It changes the shape of the options structs

Is that accurate?

If so, I'm cool with the "opt out" of exchange declare, but I don't love changing the shape of the options struct for little benefit

h44z commented 1 year ago
  1. Yes, if you do not need to declare queues (as they might already exist for example)
  2. Yes, but as the structs are only used inside the API implementation, this should not be a big deal.
wagslane commented 1 year ago

Thanks @h44z !