coney v3.0.0-rc.2 Coney.Consumer behaviour

Link to this section Summary

Link to this section Types

Link to this type

stacktrace()

stacktrace() :: []

Link to this section Callbacks

Link to this callback

connection()

(optional)
connection() :: map()
Link to this callback

error_happened(exception, message, meta)

(optional)
error_happened(exception :: struct(), message :: binary(), meta :: map()) ::
  :ok | :reject | :redeliver | {:reply, binary()}
Link to this callback

error_happened(exception, stacktrace, message, meta)

(optional)
error_happened(
  exception :: struct(),
  stacktrace :: stacktrace(),
  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()}