Coney.Consumer behaviour (coney v3.0.0)

Link to this section Summary

Link to this section Types

Link to this type

stacktrace()

Specs

stacktrace() :: []

Link to this section Callbacks

Link to this callback

connection()

(optional)

Specs

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

error_happened(exception, message, meta)

(optional)

Specs

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

error_happened(exception, stacktrace, message, meta)

(optional)

Specs

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

parse(message, meta)

Specs

parse(message :: binary(), meta :: map()) :: any()
Link to this callback

process(payload, meta)

Specs

process(payload :: any(), meta :: map()) ::
  :ok | :reject | :redeliver | {:reply, binary()}