s2_lite/backend/mod.rs
1use s2_common::encryption::EncryptionSpec;
2
3pub mod error;
4
5mod basins;
6pub mod bgtasks;
7mod core;
8mod durability_notifier;
9mod read;
10mod store;
11mod streamer;
12mod streams;
13
14mod append;
15mod kv;
16
17pub use core::Backend;
18
19pub use crate::stream_id::StreamId;
20
21pub struct StreamHandle {
22 db: slatedb::Db,
23 client: streamer::GuardedStreamerClient,
24 encryption: EncryptionSpec,
25}
26
27pub const FOLLOWER_MAX_LAG: usize = 25;