go-cloud icon indicating copy to clipboard operation
go-cloud copied to clipboard

pubsub/rabbit: Allow parameters

Open mytototo opened this issue 5 years ago • 1 comments
trafficstars

Is your feature request related to a problem? Please describe.

When working with pubsub packages we can pass parameters to the URL. For what I have seen and tried, it looks like it is not implemented for RabbitMQ. Why?

I would like to pass x-single-active-consumer parameter, as described here: https://www.rabbitmq.com/consumers.html#single-active-consumer

Describe the solution you'd like

Be able to set parameter like for the other pubsub packages.

Example:

OpenTopic(ctx,  "rabbit://topic?x-single-active-consumer=true")

mytototo avatar Sep 08 '20 07:09 mytototo

Per-driver package parameters have to be explicitly supported. We just haven't done so for RabbitMQ. Can you send a PR?

vangent avatar Sep 08 '20 15:09 vangent