Skip to main content

Module sync

Module sync 

Source
Expand description

Sync service layer for portal synchronization logic.

This module provides pure business logic for delta detection and sync statistics, decoupled from I/O operations and CLI orchestration.

Structs§

AlwaysReprocessDetector
Delta detector that always triggers reprocessing.
AtomicSyncStats
Thread-safe wrapper for SyncStats using atomic counters.
BatchHarvestSummary
Aggregated results from batch harvesting multiple portals.
ContentHashDetector
Default delta detector using content hash comparison.
PortalHarvestResult
Result of harvesting a single portal in batch mode.
ReprocessingDecision
Result of delta detection for a dataset.
SyncResult
Result of a sync operation including status and statistics.
SyncStats
Statistics for a portal sync operation.

Enums§

SyncOutcome
Outcome of processing a single dataset during sync.
SyncStatus
Overall status of a sync operation.

Traits§

DeltaDetector
Trait for delta detection strategies.

Functions§

needs_reprocessing
Determines if a dataset needs reprocessing based on content hash comparison.