Skip to main content

Module upstream

Module upstream 

Source
Expand description

The gRPC service the proxy calls.

An upstream is any tower service that speaks gRPC over http types: a remote tonic::transport::Channel, or an embedder’s own services in process, such as tonic::service::Routes. The transcoder calls it for every transcoded request, and ProxyService hands it native gRPC requests unchanged.

Traits§

Upstream
A gRPC service the proxy can call: a remote Channel, tonic::service::Routes, or any other tower::Service<http::Request<tonic::body::Body>> answering with a gRPC response. Implemented for every such service; there is nothing to implement by hand.

Type Aliases§

BoxError
The error type a gRPC service hands back through tonic.