bunny-mock icon indicating copy to clipboard operation
bunny-mock copied to clipboard

Need support for recent history exchange

Open ebolloff opened this issue 8 years ago • 6 comments

It would be nice to use the recent history exchange or custom exchanges in general with BunnyMock.

ebolloff avatar Sep 25 '16 10:09 ebolloff

Maybe I can add some more callbacks to the exchanges to allow for custom exchange types. If an exchange received deliver (which it does now) and some sort of on_bind callback, you would be able to implement a recent history exchange right?

arempe93 avatar Sep 25 '16 14:09 arempe93

That would be nice, thanks :+1:

ebolloff avatar Sep 26 '16 06:09 ebolloff

How do you declare the recent history exchange in your bunny code btw?

arempe93 avatar Sep 26 '16 13:09 arempe93

Like this

channel.exchange_declare('ex_min_parsing_version', 'x-recent-history', 'x-recent-history-length' => 1)

ebolloff avatar Oct 04 '16 08:10 ebolloff

Ok I'll look at the relevant bunny code to see if we can hook into that for custom exchanges

arempe93 avatar Oct 04 '16 13:10 arempe93

Hi, are there any updates?

ebolloff avatar Nov 04 '16 12:11 ebolloff