rpc_dart_framework library

Client and server application framework for rpc_dart.

Core building blocks:

Classes

RpcApp
The framework entry point.
RpcAppConfig
Framework-level configuration for RpcApp.
RpcAppHealth
Aggregated health report returned by RpcApp.health and RpcTestApp.health.
RpcCallEvent
One finished RPC call: succeeded, failed or cancelled.
RpcCallSpy
An interceptor that records every RPC call for later inspection.
RpcContainer
Lightweight type-keyed service container.
RpcEnvConfig
Typed, read-only view over environment variables.
RpcFaultInjector
An IRpcInterceptor that injects errors or latency into specific RPC methods.
RpcIsolateModule
A module whose contract handlers run inside a dedicated Dart isolate.
RpcModule
Shared lifecycle base for all framework modules.
RpcServerModule
A module that exposes RPC services on the server side.
RpcTestApp
In-process test harness for RpcModules.

Enums

RpcAppHealthLevel
Overall health level of the application.

Typedefs

RpcCallEventHandler = void Function(RpcCallEvent event)
Signature for the per-call metrics observer.
RpcErrorHandler = void Function(Object error, StackTrace stackTrace, String serviceName, String methodName)
Signature for the global error hook.