AdfSenderConnector (adf_sender_connector v0.4.1)

View Source

Client for ADF Channel Sender

Summary

Functions

Request a channel close

Request a channel registration

Request a message delivery by creating a protocol message with the data provided

Types

application_ref()

@type application_ref() :: binary()

channel_ref()

@type channel_ref() :: binary()

correlation_id()

@type correlation_id() :: binary()

event_name()

@type event_name() :: binary()

message()

@type message() :: AdfSenderConnector.Message.t()

message_data()

@type message_data() :: iodata()

message_id()

@type message_id() :: binary()

user_ref()

@type user_ref() :: binary()

Functions

channel_close(channel_ref)

@spec channel_close(channel_ref()) :: {:ok, map()} | {:error, any()}

Request a channel close

channel_registration(application_ref, user_ref)

@spec channel_registration(application_ref(), user_ref()) ::
  {:ok, map()} | {:error, any()}

Request a channel registration

http_client_spec()

route_batch(messages)

@spec route_batch(message()) :: {:ok, map()} | {:error, any()}

route_message(message)

@spec route_message(message()) :: {:ok, map()} | {:error, any()}

route_message(channel_ref, event_id, correlation_id, data, event_name)

@spec route_message(
  channel_ref(),
  message_id(),
  correlation_id(),
  message() | message_data(),
  event_name()
) :: {:ok, map()} | {:error, any()}

Request a message delivery by creating a protocol message with the data provided