coney v2.0.0 Coney.Consumer behaviour

Link to this section Summary

Link to this section Callbacks

Link to this callback connection() (optional)
connection() :: map()
Link to this callback error_happend(exception, message, meta) (optional)
error_happend(exception :: struct(), message :: binary(), meta :: map()) ::
  :ok | :reject | :redeliver | {:reply, binary()}
Link to this callback parse(message, meta)
parse(message :: binary(), meta :: map()) :: any()
Link to this callback process(payload, meta)
process(payload :: any(), meta :: map()) ::
  :ok | :reject | :redeliver | {:reply, binary()}