mishudark / eventhus

Go - CQRS / Event Sourcing made easy - Go
MIT License
465 stars 92 forks source link

Add mocked event store #14

Closed fabiante closed 4 years ago

fabiante commented 5 years ago

This PR adds a mocked event store.

Background

For testing I'd like to use this library without an actual mongodb and rabbitmq.

For that I need mock implementations (or in-memory) which I try to create right now.

Changes

fabiante commented 5 years ago

@mishudark Hi! I'd like to contribute my mock implementations for the event bus and event store.

This is currently only a draft but I want to "show" it to you anyway so that you can give me some early feedback.

Would be great to know what you think. Thanks

mishudark commented 4 years ago

hey, thanks for the draft, I'm close to deprecate the actual version in favor of the v2 in that branch, that is more stable and contains better support for failures and the rewrite of badger

mishudark commented 4 years ago

https://github.com/mishudark/eventhus/tree/v2/v2

fabiante commented 4 years ago

Okay. I gues it would be more sensible then to implement the mocks not from the master branch but from v2

I'll do that some time later.