interceptor
Module: startup::interceptor
Section titled “Module: startup::interceptor”Contents
Section titled “Contents”Structs
Functions
spawn_interceptor- Spawn the configured interceptor as a background tokio task.
firma_sidecar::startup::interceptor::SpawnedInterceptor
Section titled “firma_sidecar::startup::interceptor::SpawnedInterceptor”Struct
Fields:
handle: tokio::task::JoinHandle<()>listen_addr: String
firma_sidecar::startup::interceptor::spawn_interceptor
Section titled “firma_sidecar::startup::interceptor::spawn_interceptor”Function
Spawn the configured interceptor as a background tokio task.
Errors
Section titled “Errors”Returns an error when the interceptor mode is unix_socket but
the required socket_path is missing (should be caught by
validation, but enforced here defensively).
fn spawn_interceptor(config: &config::SidecarConfig, handler: std::sync::Arc<crate::handler::RequestHandler>, cancel: tokio_util::sync::CancellationToken) -> anyhow::Result<SpawnedInterceptor>