EasyRpc.Dsl (EasyRpc v0.9.0)

Copy Markdown View Source

Spark DSL extension for EasyRpc.

Defines the DSL structure for declaring RPC functions with support for:

  • Node configuration (nodes, select_mode, sticky_node)
  • Global settings (timeout, retry, error_handling)
  • Per-function configuration via rpc_function entities

Summary

Types

t()

@type t() :: %{
  node_selector: EasyRpc.NodeSelector.t(),
  module: module(),
  timeout: pos_integer() | :infinity,
  retry: non_neg_integer(),
  sleep_before_retry: non_neg_integer(),
  error_handling: boolean(),
  functions: [EasyRpc.Dsl.Function.t()]
}

Functions

config(body)

(macro)

rpc_functions(body)

(macro)