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
Strategy- Transport strategy traitgRPCTransport- gRPC-based communicationIPCTransport- Inter-process communicationWASMTransport- Direct WASM module communication
Modules§
- IPCTransport
- IPC Transport Implementation
- Strategy
- Transport Strategy Module
- WASM
Transport - WASM Transport Implementation
- gRPC
Transport - gRPC Transport Implementation
Structs§
- Transport
Config - Transport configuration.
Constants§
- DEFAULT_
CONNECTION_ TIMEOUT_ MS - Default connection timeout
- DEFAULT_
REQUEST_ TIMEOUT_ MS - Default request timeout
Functions§
- Create
Default Transport - Creates the default transport (gRPC to localhost).
- CreateIPC
Transport - Creates an IPC transport using the default socket/pipe path.
- CreateWASM
Transport - Creates a WASM transport with the given configuration.
- CreategRPC
Transport - Creates a gRPC transport connecting to the given address.