Skip to main content

allsource_core/infrastructure/
mod.rs

1// Infrastructure layer - concrete implementations
2// This contains:
3// - repositories/ (In-memory, PostgreSQL, RocksDB implementations with SierraDB patterns)
4// - persistence/ (Storage integrity, checksums, lock-free structures)
5// - cluster/ (Node registry, request routing for distributed systems)
6// - web/ (HTTP handlers, WebSocket handlers)
7// - security/ (Authentication, authorization, rate limiting)
8// - config/ (Configuration loading)
9// - observability/ (Metrics, tracing)
10// - search/ (Vector search engine with HNSW indexing)
11// - di/ (Dependency injection container)
12
13pub mod cluster;
14pub mod config;
15pub mod di;
16pub mod hash_state;
17pub mod memory;
18pub mod observability;
19pub mod persistence;
20pub mod query;
21#[cfg(feature = "replication")]
22pub mod replication;
23#[cfg(not(feature = "replication"))]
24pub mod replication {
25    //! Stub types for community builds (replication disabled at compile time).
26    /// Stub — replication not available in community edition.
27    pub struct WalShipper;
28    /// Stub — replication not available in community edition.
29    pub struct WalReceiver;
30    /// Stub — replication not available in community edition.
31    #[derive(Debug, Clone, Copy, serde::Serialize)]
32    pub enum ReplicationMode {
33        Async,
34    }
35    /// Stub — replication not available in community edition.
36    #[derive(Debug, Clone, serde::Serialize)]
37    pub struct ReplicationStatus {
38        pub enabled: bool,
39    }
40    /// Stub — replication not available in community edition.
41    #[derive(Debug, Clone, serde::Serialize)]
42    pub struct FollowerReplicationStatus {
43        pub connected: bool,
44    }
45}
46pub mod repositories;
47#[cfg(feature = "server")]
48pub mod resp;
49pub mod search;
50pub mod security;
51#[cfg(feature = "server")]
52pub mod web;