arempe93 / bunny-mock

A mock client for RabbitMQ modeled after the Bunny client in ruby
http://www.rubydoc.info/github/arempe93/bunny-mock
MIT License
44 stars 37 forks source link

Need support for recent history exchange #21

Open ebolloff opened 8 years ago

ebolloff commented 8 years ago

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

arempe93 commented 8 years ago

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?

ebolloff commented 8 years ago

That would be nice, thanks :+1:

arempe93 commented 8 years ago

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

ebolloff commented 8 years ago

Like this

channel.exchange_declare('ex_min_parsing_version', 'x-recent-history', 'x-recent-history-length' => 1)
arempe93 commented 8 years ago

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

ebolloff commented 8 years ago

Hi, are there any updates?