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 two modes:

  • Event mode: notify::recommended_watcher() for local filesystems
  • Poll mode: notify::PollWatcher for NFS/CIFS/FUSE mounts

Structsยง

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