Expand description
The gRPC network transport.
Modules§
- api
- The gRPC service and message types generated from
proto/rpc.proto. - pool
- A pool of reusable gRPC transport channels.
- transport
- Transport-level configuration and channel construction for gRPC.
Structs§
- Grpc
Client - A gRPC client for communicating with a validator node.
- Grpc
Node Provider - A node provider that creates gRPC clients backed by a shared connection pool.
- Grpc
Prometheus Metrics Middleware Layer - A Tower layer that records Prometheus metrics for gRPC requests.
- Grpc
Prometheus Metrics Middleware Service - The Tower service produced by
GrpcPrometheusMetricsMiddlewareLayer. - Grpc
Server - A gRPC server exposing a validator’s worker as a network service.
- Grpc
Server Handle - A handle to a running
GrpcServertask.
Enums§
Constants§
- ERROR_
TYPE_ LABEL - Prometheus label for the error variant name, e.g.
"WorkerError::UnexpectedBlockHeight". - GRPC_
CHUNKED_ MESSAGE_ FILL_ LIMIT - Limit of gRPC message size up to which we will try to populate with data when estimating. We leave 30% of buffer for the rest of the message and potential underestimation.
- GRPC_
MAX_ MESSAGE_ SIZE - The maximum gRPC message size, in bytes.
- METHOD_
NAME_ LABEL - Prometheus label for the gRPC method name.
- TRAFFIC_
TYPE_ LABEL - Prometheus label for distinguishing organic vs synthetic (benchmark) traffic.
Traits§
- Grpc
Proxyable - Types which are proxyable and expose the appropriate methods to be handled
by the
GrpcProxy
Functions§
- extract_
grpc_ method_ name - Extracts the gRPC method name from a request URI path.