wsb-daemon 0.248.6265

wsb's daemon: the workbench, the GitHub mirror's schedule and peer continuity, for every workspace on the machine
//! This daemon's reading of the workspace's operation-log format.
//!
//! The format, the writer and the readers are the LIBRARY's — `wsb::logs::op_log`
//! — because a command line writes these files and this daemon only reads
//! them. What is here is the adaptation: the file speaks in the vocabulary
//! every reader of it shares, and the registry in its own `OutputLine`.

use super::ops::OutputLine;

pub use wsb::logs::op_log::{read, read_envelope, recent_logs, Status};

/// One line back from the file, in the shape the registry and the page speak.
pub fn output_line_of(line: wsb::output::Line) -> OutputLine {
    OutputLine {
        seq: line.seq,
        ts: Some(line.ts),
        record: line.record,
    }
}

#[cfg(test)]
#[path = "op_log_tests.rs"]
mod tests;