Raxol.Core.Runtime.Plugins.FileWatcher (Raxol v2.0.1)

View Source

Handles file watching and plugin reloading functionality.

Summary

Functions

Handles a file event.

Schedules a plugin reload.

Sets up file watching for plugin hot-reloading.

Starts the file watcher process.

Stops the file watcher process.

Subscribes to file watcher events.

Functions

handle_debounced_events(plugin_id, plugin_path, state)

Handles debounced file events.

handle_file_event(path, state)

Handles a file event.

schedule_reload(plugin_id, path, state)

Schedules a plugin reload.

setup_file_watching(config \\ %{})

Sets up file watching for plugin hot-reloading.

start_link(config \\ %{})

Starts the file watcher process.

stop(pid)

Stops the file watcher process.

subscribe(pid)

Subscribes to file watcher events.