grpc
Module: interceptor::grpc
Section titled “Module: interceptor::grpc”Contents
Section titled “Contents”Structs
GrpcInterceptor- Tonic-based gRPC hook interceptor.
firma_sidecar::interceptor::grpc::GrpcInterceptor
Section titled “firma_sidecar::interceptor::grpc::GrpcInterceptor”Struct
Tonic-based gRPC hook interceptor.
Exposes an InterceptorHook gRPC service that agent code calls directly
from within the same process or over a local connection. Each inbound
InterceptRequest is converted into a
RawRequest and handled through the
RequestHandler. The resulting
HandledResponse is mapped to an
InterceptResponse returned to the
agent.
Malformed requests that cannot be parsed into a valid RawRequest are
rejected with a structured DENY carrying reason MALFORMED_REQUEST
(fail-closed).
Methods:
fn new(address: SocketAddr) -> Self- Creates a new [GrpcInterceptor] that listens on the specified address.
Trait Implementations:
- InterceptorHook
fn intercept(self: &'life0 Self, request: tonic::Request<InterceptRequest>) -> ::core::pin::Pin<Box<dyn ::core::future::Future>>
- Interceptor
fn run(self: Self, handler: Arc<RequestHandler>, cancel: CancellationToken) -> Result<(), InterceptorError>
- From
fn from(address: SocketAddr) -> Self