ExWapp.Session.Worker.Retry (ExWapp v0.1.2)

Copy Markdown View Source

Outbound retry and message lookup helpers for Session.

Summary

Types

normalize_fun()

@type normalize_fun() :: (binary() -> binary())

register_worker_fun()

@type register_worker_fun() :: (map(), pid(), reference(), binary() -> map())

send_fun()

@type send_fun() :: (binary(), binary() -> {:ok, binary()} | {:error, term()})

start_worker_fun()

@type start_worker_fun() :: (map(), binary(), (-> any()) ->
                         {:ok, pid(), reference()} | {:error, term()})

Functions

maybe_retry_outgoing_message(state, jid, message_id, opts)

@spec maybe_retry_outgoing_message(
  ExWapp.Session.Worker.t(),
  String.t(),
  String.t(),
  keyword()
) ::
  ExWapp.Session.Worker.t()