Skip to main content

krabka_remote_storage/
diskless.rs

1//! Shared diskless-WAL range metadata and independently versioned formats.
2
3/// Portable capture state, committed-event projection, and WORM authentication.
4pub mod capture;
5/// Compacted index-topic key and value codecs.
6pub mod index;
7/// CKWL object framing codec.
8pub mod object;
9
10use {
11    serde::{Deserialize, Serialize},
12    uuid::Uuid,
13};
14
15/// One partition's byte range in a flushed object.
16#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
17pub struct WalIndexEntry {
18    pub topic_id: Uuid,
19    pub partition: i32,
20    pub first_offset: i64,
21    pub last_offset: i64,
22    pub byte_start: u64,
23    pub byte_len: u32,
24    pub max_timestamp_ms: i64,
25}
26
27#[cfg(test)]
28mod tests;