//! Consumer library //! //! This module exposes internal modules for testing and potential reuse. //! The consumer is primarily a binary application, but exposing modules //! as a library allows for integration testing. mod cmd; mod config; pub mod database_writer; pub mod db; mod error; mod external; // mod label_indexer; // Disabled - will be reimplemented with new cursor system mod relay; pub mod search; mod sources; pub mod types; mod utils; pub mod worker_core; pub mod workers; // Re-export key types and functions for binary use pub use cmd::{parse, Cli}; pub use config::{load_config, Config}; pub use database_writer::spawn_database_writer_tap; pub use error::Result; // Re-export modules for testing pub mod db_ops { pub use crate::db::operations::*; } pub mod db_modules { pub use crate::db::*; } pub mod external_services { pub use crate::external::*; } pub mod indexing { pub use crate::relay::*; } pub mod streaming { pub mod sources { pub use crate::sources::*; } pub mod workers { pub use crate::workers::*; } } pub mod event_types { pub use crate::types::*; } pub mod utilities { pub use crate::utils::*; } // Re-export commonly used utility functions at the crate root