nautilus_event_store/markers/mod.rs
1// -------------------------------------------------------------------------------------------------
2// Copyright (C) 2015-2026 Nautech Systems Pty Ltd. All rights reserved.
3// https://nautechsystems.io
4//
5// Licensed under the GNU Lesser General Public License Version 3.0 (the "License");
6// You may not use this file except in compliance with the License.
7// You may obtain a copy of the License at https://www.gnu.org/licenses/lgpl-3.0.en.html
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14// -------------------------------------------------------------------------------------------------
15
16//! Data marker sidecar capture, schema types, canonical content hashes, and writer lane.
17//!
18//! The sidecar records the observed order of streaming data at the message-bus boundary as
19//! compact cursor snapshots, joinable back to catalog rows. No market-data payload is
20//! persisted.
21
22mod backend;
23mod capture;
24mod cursor;
25mod extractor;
26mod marker;
27mod reader;
28mod redb;
29mod verifier;
30mod writer;
31
32#[cfg(feature = "persistence")]
33mod join;
34
35#[cfg(test)]
36mod test_support;
37
38pub use backend::{MarkerBackend, MarkerManifest, MemoryMarkerBackend, StoredMarkerRecord};
39pub use capture::DataMarkerCapture;
40pub use cursor::CursorState;
41pub use extractor::{DataMarkerExtractor, DataMarkerExtractorRegistry};
42#[cfg(feature = "persistence")]
43pub use join::{JoinedStream, join_at_entry};
44pub use marker::{
45 DataClass, DataCursorSnapshot, HiFiMarker, MarkerGap, MarkerGapReason, StreamCursor,
46 StreamDictEntry, StreamSlot, compute_dict_hash, compute_gap_hash, compute_hifi_hash,
47 compute_marker_hash,
48};
49pub use nautilus_system::event_store::DataMarkerConfig;
50pub use reader::MarkerReader;
51pub use redb::RedbMarkerBackend;
52pub use verifier::{
53 MarkerCountKind, MarkerFinding, MarkerRecordKind, MarkerVerifier, MarkerVerifyReport,
54};
55pub use writer::{
56 DEFAULT_MARKER_CHANNEL_CAPACITY, DEFAULT_MARKER_MAX_BATCH, DEFAULT_MARKER_MAX_LATENCY,
57 MarkerMsg, MarkerWriter, MarkerWriterConfig,
58};