Expand description
tonic gRPC server bootstrap as a lifecycle-managed Component.
Re-exports§
pub use builder::GrpcServerBuilder;pub use component::GrpcServer;pub use config::GrpcServerConfig;pub use config::TlsConfig;pub use error_layer::ErrorLayer;pub use http::HttpServer;pub use http::HttpServerBuilder;pub use http::health_router;pub use http::healthz_router;pub use http_config::HttpServerConfig;pub use middleware::HTTP_BASELINE_LAYER_ORDER;pub use middleware::HTTP_INTERCEPTOR_ORDER;pub use middleware::HttpMiddlewareStack;pub use middleware::RouterTransform;
Modules§
- builder
GrpcServerBuilderfor constructing aGrpcServercomponent.- component
GrpcServerlifecycle component.- config
GrpcServerConfigandTlsConfig.- error_
layer ErrorLayer— auto-enriches gRPC error responses with structured RFC 9457 details. Tower layer that intercepts gRPC responses and enriches error statuses with structuredrskit_errors::AppErrordetails.- http
- HTTP server lifecycle and health routers.
- http_
config - HTTP server configuration owned by
rskit-server. - middleware
- Ordered HTTP middleware phases.
Structs§
- Cors
Policy - Cross-origin resource sharing policy.
- Http
TlsConfig - TLS material and peer-verification settings shared by transport crates.
- Security
Headers Config - Secure-by-default response header configuration.
- Security
Headers Layer - Tower layer that applies secure response headers.
Enums§
- Transport
Security - Transport security mode used when applying response headers.