Exchange v0.1.0 Exchange.MessageBus behaviour View Source

Behaviour that a message library must implement in order to comunicate with the Exchange

Link to this section Summary

Link to this section Callbacks

Specs

add_listener(key :: String.t()) :: :error | :ok
Link to this callback

cast_event(event, payload)

View Source

Specs

cast_event(event :: atom(), payload :: any()) :: nil | :ok

Specs

remove_listener(key :: String.t()) :: :error | :ok