Module grpc

Source

Modules§

api
pool
transport

Structs§

GrpcClient
GrpcNodeProvider
GrpcPrometheusMetricsMiddlewareLayer
GrpcPrometheusMetricsMiddlewareService
GrpcServer
GrpcServerHandle

Enums§

GrpcError
GrpcProtoConversionError

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
METHOD_NAME_LABEL
Prometheus label for the gRPC method name.
TRAFFIC_TYPE_LABEL
Prometheus label for distinguishing organic vs synthetic (benchmark) traffic.

Traits§

GrpcProxyable
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.