AdfSenderConnector.Router (adf_sender_connector v0.4.1)

View Source

Async Dataflow Rest client for /ext/channel/deliver_message endpoint

Summary

Functions

Requests Channel Sender to route a message with the indicated event name. Internally the function will build a Message struct.

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_data()

@type message_data() :: iodata()

message_id()

@type message_id() :: binary()

user_ref()

@type user_ref() :: binary()

Functions

route_batch(messages)

@spec route_batch([AdfSenderConnector.Message.t()]) :: {:ok, map()} | {:error, any()}

route_message(message)

@spec route_message(
  {channel_ref(), message_id(), correlation_id(), message_data(), event_name()}
) ::
  {:ok, map()} | {:error, any()}
@spec route_message(AdfSenderConnector.Message.t()) :: {:ok, map()} | {:error, any()}

Requests Channel Sender to route a message with the indicated event name. Internally the function will build a Message struct.

send_delete_request(sender_url)

send_post_request(body, sender_url)