On 17/10/18 16:57, rk wrote:
I'm attempting to get a Go electron receiver working using a filter that
should give me behaviour akin to the legacy header exchange bindings. My
understanding is this can be done using this filter
apache.org:legacy-amqp-headers-binding:map. However the Go receiver I've
built seems to always receiver all messages not just the messages with the
appropriate headers.

I don't know the electron API I'm afraid, but the filter is a map whose keys don't actually matter, but whose values must be described types. I.e. the apache.org:legacy-amqp-headers-binding:map' is not a key but a descriptor of the value (which is itself a map). (Yes it is un-necessarily complicated!). The map representing the headers binding is keyed by string rather than by symbol.

Alan, do you have a code example/snippet showing how to encode described types in proton go?

However you can get the same behaviour using a selector filter which may be simpler (and which other brokers implement as well, meaning more portability). It does still need to be expressed as a described value though. There are examples for python and c++ in proton (see selected_recv.py/selected_recv.cpp).



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to