Skip to main content

Module discovery

Module discovery 

Source
Expand description

File discovery engine (Ring 2).

Watches a directory for new files and emits DiscoveredFile events to the source connector via an mpsc channel. Supports three modes:

  • Event mode: notify::recommended_watcher() for local filesystems
  • Poll mode: notify::PollWatcher for NFS/CIFS/FUSE mounts
  • Cloud poll mode: object_store::list() for cloud storage paths

Structsยง

DiscoveredFile
A file discovered by the discovery engine.
DiscoveryConfig
Configuration for the discovery engine.
FileDiscoveryEngine
Handle to a running discovery engine. Dropping this stops the engine.