Info module for introspecting EasyRpc DSL definitions.
Provides functions to query the DSL state of modules using EasyRpc.
Examples
# Get all RPC functions
EasyRpc.Info.rpc_functions(MyApp.RemoteApi)
# Get config values
EasyRpc.Info.config(MyApp.RemoteApi)
Summary
Functions
Enable detailed logging (default: true)
Enable detailed logging (default: true)
Return {:ok, result} tuples (default: false)
Return {:ok, result} tuples (default: false)
Remote module to call
Remote module to call
Static list of target node names (e.g., [:"node1@host", :"node2@host"])
Static list of target node names (e.g., [:"node1@host", :"node2@host"])
Dynamic node discovery via MFA: {module, function, args} (alternative to :nodes)
Dynamic node discovery via MFA: {module, function, args} (alternative to :nodes)
config DSL options
Global retry count (default: 0)
Global retry count (default: 0)
Node selection strategy
Node selection strategy
Ms to wait before retry (default: 0)
Ms to wait before retry (default: 0)
Pin to the first selected node for the process lifetime
Pin to the first selected node for the process lifetime
Global timeout in ms (use :infinity for no timeout)
Global timeout in ms (use :infinity for no timeout)
rpc_functions DSL entities
Functions
Enable detailed logging (default: true)
Enable detailed logging (default: true)
Return {:ok, result} tuples (default: false)
Return {:ok, result} tuples (default: false)
Remote module to call
Remote module to call
Static list of target node names (e.g., [:"node1@host", :"node2@host"])
Static list of target node names (e.g., [:"node1@host", :"node2@host"])
Dynamic node discovery via MFA: {module, function, args} (alternative to :nodes)
Dynamic node discovery via MFA: {module, function, args} (alternative to :nodes)
config DSL options
Returns a map containing the and any configured or default values.
Global retry count (default: 0)
Global retry count (default: 0)
@spec config_select_mode(dsl_or_extended :: module() | map()) :: {:ok, :hash | :round_robin | :random} | :error
Node selection strategy
@spec config_select_mode!(dsl_or_extended :: module() | map()) :: (:hash | :round_robin | :random) | no_return()
Node selection strategy
Ms to wait before retry (default: 0)
Ms to wait before retry (default: 0)
Pin to the first selected node for the process lifetime
Pin to the first selected node for the process lifetime
Global timeout in ms (use :infinity for no timeout)
Global timeout in ms (use :infinity for no timeout)
rpc_functions DSL entities