View Source GenericListener behaviour (reactive_commons v0.8.0)
Implements generic behaviour for event listeners
Link to this section Summary
Callbacks
Create resource topology.
Get initial state.
Evaluate if should listen for this kind of events.
Link to this section Callbacks
@callback create_topology(AMQP.Channel.t()) :: atom()
Create resource topology.
@callback initial_state() :: map()
Get initial state.
@callback should_listen() :: boolean()
Evaluate if should listen for this kind of events.