Module Transport

Module Transport 

Source
Expand description

Transport Layer Module

Provides different communication strategies for Grove. Supports gRPC, IPC, and WASM-based transport methods.

§Architecture

+++++++++++++++++++++++++++++++++++++++++++
+          Transport Strategy             +
+++++++++++++++++++++++++++++++++++++++++++
+  • gRPC - Network-based communication  +
+  • IPC   - Local process communication +
+  • WASM  - Direct WASM communication   +
+++++++++++++++++++++++++++++++++++++++++++
          +                    +
          ▼                    ▼
++++++++++++++++++++  ++++++++++++++++++++
+ Mountain/Core    +  +  Extension       +
+  (gRPC client)   +  +  Module (WASM)   +
++++++++++++++++++++  ++++++++++++++++++++

§Key Components

Re-exports§

pub use Strategy::Transport;
pub use Strategy::TransportStrategy;
pub use Strategy::TransportType;
pub use Strategy::TransportStats;
pub use gRPCTransport::GrpcTransport;
pub use IPCTransport::IPCTransportImpl;
pub use WASMTransport::WASMTransportImpl;

Modules§

IPCTransport
IPC Transport Implementation
Strategy
Transport Strategy Module
WASMTransport
WASM Transport Implementation
gRPCTransport
gRPC Transport Implementation

Structs§

TransportConfig
Transport configuration

Constants§

DEFAULT_CONNECTION_TIMEOUT_MS
Default connection timeout
DEFAULT_REQUEST_TIMEOUT_MS
Default request timeout

Functions§

create_default_transport
Create a default transport
create_grpc_transport
Create a gRPC transport with the given address
create_ipc_transport
Create an IPC transport
create_wasm_transport
Create a WASM transport with the given configuration