Skip to main content

Module monitor

Module monitor 

Source
Expand description

Change detection and URL monitoring engine (Phase 5, PRD §10, Mode G).

§Commands

fetchium monitor <url>                     # one-shot check for changes
fetchium monitor <url> --diff              # show diff since last snapshot
fetchium monitor <url> --interval 1h       # register for periodic polling
fetchium monitor list                      # list all monitored URLs
fetchium monitor remove <url>              # stop monitoring

Re-exports§

pub use diff::compute_diff;
pub use diff::compute_diff_summary;
pub use diff::ContentDiff;
pub use diff::DiffLine;
pub use snapshot::MonitorEntry;
pub use snapshot::Snapshot;
pub use snapshot::SnapshotStore;

Modules§

diff
Content diff computation using the similar crate (Phase 5, PRD §10, Mode G).
snapshot
Content snapshot store for change detection (Phase 5, PRD §10, Mode G).

Structs§

MonitorResult
Result of a monitor check.

Functions§

parse_interval
Parse a human-readable interval string to seconds.