Raxol.Core.Runtime.Plugins.PluginEventFilter.Behaviour behaviour (Raxol v2.0.1)
View SourceBehavior for plugin event filtering.
Summary
Callbacks
Filters an event through the plugin system. Returns {:ok, event} for modified/passed-through events, :halt to stop event propagation, or {:error, reason} on error.
Initializes the event filter for a plugin.
Terminates the event filter for a plugin.
Callbacks
@callback filter_event(event :: term(), plugin_state :: term()) :: {:ok, term()} | :halt | {:error, term()}
Filters an event through the plugin system. Returns {:ok, event} for modified/passed-through events, :halt to stop event propagation, or {:error, reason} on error.
Initializes the event filter for a plugin.
@callback terminate_filter(state :: term()) :: :ok
Terminates the event filter for a plugin.