AdfSenderConnector.Channel (adf_sender_connector v0.4.1)

View Source

Async Dataflow Rest client for /ext/channel endpoints

Summary

Functions

Request Channel Sender to close a channel.

Request Channel Sender to register a channel for the application and user indicated. Returns appropriate credentials.

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

close_channel(channel_ref)

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

Request Channel Sender to close a channel.

exchange_credentials(application_ref, user_ref)

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

Request Channel Sender to register a channel for the application and user indicated. Returns appropriate credentials.

send_delete_request(sender_url)

send_post_request(body, sender_url)