View Source OffBroadwayAmqp10.Amqp10.Client behaviour (off_broadway_amqp10 v0.2.0)

AMQP 1.0 Client wrapper behaviour

Summary

Types

annotations_key()

@type annotations_key() :: binary() | non_neg_integer()

annotations_keys()

@type annotations_keys() :: %{required(annotations_key()) => any()}

Callbacks

accept_msg(t, raw_message)

@callback accept_msg(
  OffBroadwayAmqp10.Amqp10.State.t(),
  OffBroadwayAmqp10.Amqp10.State.raw_message()
) ::
  :ok

annotations(raw_message)

@callback annotations(OffBroadwayAmqp10.Amqp10.State.raw_message()) :: annotations_keys()

application_properties(raw_message)

@callback application_properties(OffBroadwayAmqp10.Amqp10.State.raw_message()) ::
  :amqp10_msg.amqp10_properties()

attach(t)

@callback attach(OffBroadwayAmqp10.Amqp10.State.t()) ::
  {:ok, OffBroadwayAmqp10.Amqp10.State.receiver()}

begin_session(t)

@callback begin_session(OffBroadwayAmqp10.Amqp10.State.t()) :: Supervisor.on_start_child()

body(raw_message)

@callback body(OffBroadwayAmqp10.Amqp10.State.raw_message()) :: binary()

headers(raw_message)

@callback headers(OffBroadwayAmqp10.Amqp10.State.raw_message()) ::
  :amqp10_msg.amqp10_header()

open_connection(t)

@callback open_connection(OffBroadwayAmqp10.Amqp10.State.t()) ::
  Supervisor.on_start_child()

properties(raw_message)

@callback properties(OffBroadwayAmqp10.Amqp10.State.raw_message()) ::
  :amqp10_msg.amqp10_properties()