API Reference EasyRpc v#1.0.0

Copy Markdown View Source

Modules

Main DSL module for EasyRpc.

Behaviour for RPC execution implementations.

Kept for backward compatibility. Delegates to EasyRpc.Error.

Context struct that flows through an RPC plug pipeline.

Declarative per-function RPC wrapper via the defrpc macro.

Spark DSL extension for EasyRpc.

Struct representing an RPC function definition in the DSL.

Struct representing a plug in the pipeline DSL.

Unified error handling for EasyRpc library.

Info module for introspecting EasyRpc DSL definitions.

Node selection strategies for distributed RPC calls.

Builds and executes a middleware pipeline for RPC calls.

Defines the contract for EasyRpc middleware plugs.

Local process-cache plug using an ETS table.

Normalises the context after execution.

Calls :erpc.call with the node, module, function, args, and timeout from the context.

Logs RPC calls before execution and after completion.

Selects a target node and stores it in ctx.node.

Retries the downstream pipeline when the call fails.

Emits :telemetry events around RPC calls.

Core module for executing remote procedure calls.

Kept for backward compatibility. Delegates to EasyRpc.Error.

Configuration-driven RPC wrapper.

Transformer that generates RPC wrapper functions from DSL definitions.

Compile-time helpers for generating RPC wrapper functions.

Verifies that the EasyRpc DSL configuration is valid.

Configuration struct for RPC wrappers.