Skip to content

interceptor

Structs

Functions


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.

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>