Module Sortal_feed.Meta

Per-feed sync metadata.

Tracks last-sync time, HTTP conditional GET headers, and entry count for each feed file. Stored as JSON alongside the feed data.

type t = {
  1. feed_url : string;
  2. feed_type : Sortal_schema.Feed.feed_type;
  3. last_sync : Ptime.t option;
  4. etag : string option;
  5. last_modified : string option;
  6. entry_count : int;
}
val json_t : t Jsont.t
val save : Eio.Fs.dir_ty Eio.Path.t -> t -> unit
val load : Eio.Fs.dir_ty Eio.Path.t -> t option