pub struct ServerConfig {
pub listen_address: SocketAddr,
pub health_listen_address: SocketAddr,
pub drain_timeout_ms: u64,
pub channels: Vec<ChannelDef>,
pub routing_rules: Vec<RoutingRuleDef>,
pub persistence_path: Option<PathBuf>,
pub cluster: Option<ClusterConfig>,
pub auth: Option<AuthConfig>,
}Expand description
Declarative configuration for the standalone liminal server wrapper.
Fields§
§listen_address: SocketAddrSocket address where the standalone server will listen for client traffic.
health_listen_address: SocketAddrSocket address where the health endpoint server will listen for probes.
drain_timeout_ms: u64Maximum time to allow existing connections to drain during graceful shutdown.
channels: Vec<ChannelDef>Channel topology definitions declared by the operator.
routing_rules: Vec<RoutingRuleDef>Declarative routing rules that connect configured channels.
persistence_path: Option<PathBuf>Optional filesystem location for durable server state.
cluster: Option<ClusterConfig>Optional beamr distribution cluster membership configuration.
auth: Option<AuthConfig>Optional connection authentication configuration.
When present, every client Connect handshake must carry a matching
auth_token; when absent the server is open (byte-identical to the
pre-auth behaviour). Not an ACL system — a single shared bearer token.
Implementations§
Source§impl ServerConfig
impl ServerConfig
Sourcepub const fn drain_timeout(&self) -> Duration
pub const fn drain_timeout(&self) -> Duration
Returns the configured graceful-shutdown drain timeout.
Trait Implementations§
Source§impl Clone for ServerConfig
impl Clone for ServerConfig
Source§fn clone(&self) -> ServerConfig
fn clone(&self) -> ServerConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more