View Source WhiteRabbit.RPC (White Rabbit v0.2.0)

RPC module that handles decoding, encoding, and processing of RPC calls.

Start Setup

Pass the WhiteRabbit rpc_enabled: true option as well as the config map via the rpc_config option.

Use the optional WhiteRabbit callback: WhiteRabbit.get_rpc_config() to output correct format.

Example Calls

iex> AppFour.WhiteRabbit.rpc_call(:appone, {AppOne.Utils, :get_versions, []})

Link to this section Summary

Types

Service that a rpc call will be sent to.

Link to this section Types

@type service_rpc() :: String.t()

Service that a rpc call will be sent to.

Ex: "appone"

Link to this section Functions

Link to this function

call(owner, service, mfa, opts \\ [])

View Source
@spec call(
  owner :: module(),
  service :: service_rpc(),
  mfa :: {module(), atom(), []},
  options :: Keyword.t()
) :: {:ok, any()} | {:error, any()}
Link to this function

handle_rpc_message!(channel, message, metadata)

View Source
Link to this function

return_rpc_message!(channel, message, metadata)

View Source