ConnectorRegistry
Module: connector::registry::ConnectorRegistry
Section titled “Module: connector::registry::ConnectorRegistry”Contents
Section titled “Contents”Functions
register_host- Registers a connector as the override forhost.select- Returns the connector that should handlehost.
firma_sidecar::connector::registry::ConnectorRegistry::register_host
Section titled “firma_sidecar::connector::registry::ConnectorRegistry::register_host”Function
Registers a connector as the override for host.
Replaces any previously registered override for the same host. Host matching is exact string equality against the envelope-derived host; there is no wildcard or suffix match.
fn register_host(self: & mut Self, host: String, connector: Arc<dyn Connector>)firma_sidecar::connector::registry::ConnectorRegistry::select
Section titled “firma_sidecar::connector::registry::ConnectorRegistry::select”Function
Returns the connector that should handle host.
Host overrides win; the default connector is returned when no
override is registered. The returned Arc is cheap to clone
and is safe to hold across await points.
fn select(self: &Self, host: &str) -> Arc<dyn Connector>