asaskevich / EventBus

[Go] Lightweight eventbus with async compatibility for Go
MIT License
1.74k stars 220 forks source link

Introduce bus interface instead of struct #19

Closed mklimuk closed 6 years ago

mklimuk commented 7 years ago

Hello,

Could we replace structs with interfaces to facilitate testing of bus-dependent services? This would also provide an elegant way to implement the network bus: it would simply be an another implementation of the interface. I'm working on a corresponding PR. It would be useful to tag releases as well as more and more people use dependency management tools.

Cheers, Michal

bennAH commented 7 years ago

Hi @mklimuk, please send a PR and update once happy. We will take a look