Skip to main content

Crate gateway

Crate gateway 

Source
Expand description

Health-aware gateway routing and an Actix/Reqwest reverse proxy.

Structs§

GatewayConfig
File-loadable configuration for the HTTP gateway runtime.
GatewayMiddlewareNext
The remainder of an upstream middleware chain and its network dispatch.
GatewayMiddlewareRequest
An outbound request passed through a configured gateway middleware chain.
GatewayProxy
An HTTP reverse proxy backed by a GatewayRouter.
GatewayRoute
A configured HTTP path prefix and its upstream endpoints.
GatewayRouter
Selects the most specific route and distributes requests across its upstreams.
GatewayServer
Configuration-driven Actix gateway with bounded graceful draining.
HttpBinding
An explicit HTTP binding for a fully-qualified protobuf method.
Transcoder
A cloneable Actix handler state that dynamically invokes generated-independent gRPC methods.
TranscoderBuilder
Builds a descriptor-driven transcoder from a compiled FileDescriptorSet.

Enums§

GatewayConfigError
Configuration loading or validation failure.
GatewayError
Errors produced by invalid gateway routing configuration.
HttpVerb
HTTP verbs supported by protobuf HTTP bindings.
TranscodeError
Configuration, JSON conversion, route, or upstream failures from the transcoder.

Traits§

GatewayMiddleware
Type-erased application policy registered by name on GatewayProxy or GatewayServer.

Functions§

grpc_status_to_http
Maps canonical gRPC status codes to their HTTP equivalents.
proxy
Actix handler for mounting a GatewayProxy stored in web::Data.
transcode
Actix handler for a Transcoder stored in web::Data.

Type Aliases§

GatewayMiddlewareFuture
The boxed future returned by application-defined upstream middleware.