engine v0.1.2 Engine.Bus

The Bus receives commands and events from the API and publish them, so the handlers may take care of the commands and events to apply them to the suitable aggregates. TODO: use eventstore eventbus with extreme, see: https://github.com/exponentially/extreme

Summary

Functions

add_handler(handler, args)
publish_event(event)
remove_handler(handler, args)
send_command(command)
start_link()