Skip to main content

Crate rskit_server

Crate rskit_server 

Source
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
GrpcServerBuilder for constructing a GrpcServer component.
component
GrpcServer lifecycle component.
config
GrpcServerConfig and TlsConfig.
error_layer
ErrorLayer — auto-enriches gRPC error responses with structured RFC 9457 details. Tower layer that intercepts gRPC responses and enriches error statuses with structured rskit_errors::AppError details.
http
HTTP server lifecycle and health routers.
http_config
HTTP server configuration owned by rskit-server.
middleware
Ordered HTTP middleware phases.

Structs§

CorsPolicy
Cross-origin resource sharing policy.
HttpTlsConfig
TLS material and peer-verification settings shared by transport crates.
SecurityHeadersConfig
Secure-by-default response header configuration.
SecurityHeadersLayer
Tower layer that applies secure response headers.

Enums§

TransportSecurity
Transport security mode used when applying response headers.