pub struct ServerCommandConfig {Show 24 fields
pub path: Option<PathBuf>,
pub router_bind_addr: Option<String>,
pub grpc_bind_addr: Option<String>,
pub grpc_tls_bind_addr: Option<String>,
pub grpc_tls_cert: Option<PathBuf>,
pub grpc_tls_key: Option<PathBuf>,
pub grpc_tls_client_ca: Option<PathBuf>,
pub http_bind_addr: Option<String>,
pub http_tls_bind_addr: Option<String>,
pub http_tls_cert: Option<PathBuf>,
pub http_tls_key: Option<PathBuf>,
pub http_tls_client_ca: Option<PathBuf>,
pub wire_bind_addr: Option<String>,
pub wire_tls_bind_addr: Option<String>,
pub wire_tls_cert: Option<PathBuf>,
pub wire_tls_key: Option<PathBuf>,
pub pg_bind_addr: Option<String>,
pub create_if_missing: bool,
pub read_only: bool,
pub role: String,
pub primary_addr: Option<String>,
pub vault: bool,
pub workers: Option<usize>,
pub telemetry: Option<TelemetryConfig>,
}Fields§
§path: Option<PathBuf>§router_bind_addr: Option<String>§grpc_bind_addr: Option<String>§grpc_tls_bind_addr: Option<String>TLS-encrypted gRPC bind address. Can run side-by-side with
grpc_bind_addr (e.g. :50051 plain + :50052 TLS) or
stand alone for TLS-only deploys. Defaults to None.
grpc_tls_cert: Option<PathBuf>Path to PEM-encoded gRPC server certificate. Resolved through
REDDB_GRPC_TLS_CERT (with _FILE companion for k8s secret
mounts). When None and dev-mode is enabled
(RED_GRPC_TLS_DEV=1) the server auto-generates a self-signed
cert and prints its SHA-256 fingerprint to stderr.
grpc_tls_key: Option<PathBuf>Path to PEM-encoded gRPC server private key. Same env-var
pattern as grpc_tls_cert.
grpc_tls_client_ca: Option<PathBuf>Optional path to a PEM bundle of trust anchors used to verify client certificates. When set, the gRPC listener requires every client to present a cert that chains to this CA — i.e. mutual TLS. When unset, one-way TLS only.
http_bind_addr: Option<String>§http_tls_bind_addr: Option<String>HTTPS bind address. When set, the HTTP server also serves a TLS-terminated listener on this addr. Plain HTTP and HTTPS can run side by side (e.g. 8080 plain + 8443 TLS).
http_tls_cert: Option<PathBuf>PEM cert for HTTPS. Reads REDDB_HTTP_TLS_CERT / its _FILE
companion when not set explicitly.
http_tls_key: Option<PathBuf>PEM key for HTTPS. Reads REDDB_HTTP_TLS_KEY / its _FILE
companion when not set explicitly.
http_tls_client_ca: Option<PathBuf>Optional PEM CA bundle. When set, the HTTPS listener requires every client to present a cert that chains to a CA in this bundle (mTLS). When unset, plain server-side TLS only.
wire_bind_addr: Option<String>§wire_tls_bind_addr: Option<String>TLS-encrypted wire protocol bind address
wire_tls_cert: Option<PathBuf>Path to TLS cert PEM (if None + wire_tls_bind, auto-generate)
wire_tls_key: Option<PathBuf>Path to TLS key PEM
pg_bind_addr: Option<String>PostgreSQL wire protocol bind address (Phase 3.1 PG parity). When set the server accepts psql / JDBC / DBeaver clients on this port via the v3 protocol. Defaults to None (disabled).
create_if_missing: bool§read_only: bool§role: String§primary_addr: Option<String>§vault: bool§workers: Option<usize>Override worker thread count (None = auto-detect from CPUs)
telemetry: Option<TelemetryConfig>Telemetry config (Phase 6 logging). None falls back to the
built-in default derived from path + stderr-only.
Implementations§
Source§impl ServerCommandConfig
impl ServerCommandConfig
pub fn enabled_transports(&self) -> Vec<ServerTransport>
Trait Implementations§
Source§impl Clone for ServerCommandConfig
impl Clone for ServerCommandConfig
Source§fn clone(&self) -> ServerCommandConfig
fn clone(&self) -> ServerCommandConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for ServerCommandConfig
impl RefUnwindSafe for ServerCommandConfig
impl Send for ServerCommandConfig
impl Sync for ServerCommandConfig
impl Unpin for ServerCommandConfig
impl UnsafeUnpin for ServerCommandConfig
impl UnwindSafe for ServerCommandConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request