Expand description
hyperlane-plugin-grpc
High-concurrency gRPC over HTTP/2 framing, bounded compression, canonical
status codes, timeout parsing, XxHash3_64 service routing, extensible
interceptors, and an opt-in ServerHook for Hyperlane.
Structs§
- Grpc
Config - Configuration governing gRPC message size limits and response compression.
- Grpc
Error - Structured gRPC error carrying a canonical
GrpcStatusand message. - Grpc
Frame - Decoded 5-byte length-prefixed gRPC message frame.
- Grpc
Hook - Opt-in
ServerHookdispatching gRPCPOSTrequests withContent-Type: application/grpc*. - Grpc
Plugin - Process-wide
GrpcPluginregistry holdingGrpcConfigandGrpcRouter. - Grpc
Router - Thread-safe registry mapping
/package.Service/Methodpaths to unary async handlers.
Enums§
- Grpc
Status - Canonical gRPC status codes (
0..=16).
Constants§
- DEFAULT_
GRPC_ MAX_ MESSAGE_ SIZE - Default maximum decoded gRPC message size (4 MiB).
- GRPC_
CONTENT_ TYPE - Canonical gRPC
Content-Typeheader value. - GRPC_
ENCODING_ HEADER - Request/response header identifying the gRPC payload compression coding.
- GRPC_
FRAME_ HEADER_ LEN - Length of the 5-byte gRPC Length-Prefixed-Message header.
- GRPC_
MESSAGE_ HEADER - Response header carrying the percent-encoded gRPC error message.
- GRPC_
STATUS_ HEADER - Response header carrying the numeric gRPC status code.
- GRPC_
TIMEOUT_ HEADER - Request header carrying the client-supplied RPC timeout budget.
Traits§
- Grpc
Interceptor - Pluggable interceptor invoked before each gRPC unary service dispatch.
Functions§
- is_
grpc_ content_ type - Reports whether a
Content-Typeheader value matchesapplication/grpc(or+proto/+json). - parse_
grpc_ timeout - Parses a gRPC
grpc-timeoutheader value (<1..8 digits><H|M|S|m|u|n>) into aDuration. - percent_
encode_ grpc_ message - Percent-encodes a gRPC status message per the gRPC over HTTP/2 specification.
Type Aliases§
- Grpc
Future - Boxed
Sendfuture returned by an async unary gRPC service handler. - Grpc
Handler - Thread-safe async unary gRPC service handler receiving decoded request payload bytes.