Skip to main content

Registry backends

SPECTER provides two registry implementations:
  • MemoryRegistry: concurrent in-memory store with view-tag indexing
  • FileRegistry: memory-backed store with disk persistence and autosave

Query patterns

  • get_by_view_tag(tag) for efficient bucket scans
  • get_by_time_range(start, end) for time windows
  • get_by_id(id) for point lookup
  • count() and next_id() for metadata

Scanner behavior

Scanner supports:
  • Full scans (scan_all)
  • Filtered scans by time/view tags (scan_with_config)
  • Progress callbacks (scan_with_progress)
  • Stop-on-first discovery mode

Scanner configuration fields

FieldDescription
batch_sizeLogical batch control
stop_on_firstReturn after first discovery
from_timestamp / to_timestampTime range filtering
view_tag_filterScan only selected tag buckets
Scanner::from_wallet is currently todo!() and not implemented.