hyperlane-plugin-grpc 23.3.1

A gRPC over HTTP/2 server plugin for the Hyperlane framework with length-prefixed framing, bounded decompression, gRPC status codes, timeout parsing, service routing, and an opt-in ServerHook.
Documentation
1
2
3
4
5
6
7
use super::*;

/// Boxed `Send` future returned by an async unary gRPC service handler.
pub type GrpcFuture = Pin<Box<dyn Future<Output = Result<Vec<u8>, GrpcError>> + Send>>;

/// Thread-safe async unary gRPC service handler receiving decoded request payload bytes.
pub type GrpcHandler = Arc<dyn Fn(Vec<u8>) -> GrpcFuture + Send + Sync>;