Skip to main content

SourceFactory

Type Alias SourceFactory 

Source
pub type SourceFactory = Arc<dyn Fn(Option<&Registry>) -> Box<dyn SourceConnector> + Send + Sync>;
Expand description

Factory function type for creating source connectors.

The optional &prometheus::Registry allows connectors to register their metrics on the shared Prometheus registry when one is available.

Aliased Typeยง

pub struct SourceFactory { /* private fields */ }