Coney.Consumer behaviour (coney v3.1.0)

Summary

Types

Link to this type

stacktrace()

@type stacktrace() :: []

Callbacks

Link to this callback

connection()

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

error_happened(exception, message, meta)

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

error_happened(exception, stacktrace, message, meta)

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

parse(message, meta)

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

process(payload, meta)

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