Raxol.Plugins.EventHandler.OutputEvents (Raxol v2.0.1)

View Source

Handles output-related events for plugins.

Summary

Functions

Dispatches an "output" event to all enabled plugins implementing handle_output/2.

Types

manager()

@type manager() :: Raxol.Plugins.Manager.Core.t()

result()

@type result() :: {:ok, manager(), binary()} | {:error, term()}

Functions

handle_output(manager, output)

@spec handle_output(Raxol.Plugins.Manager.Core.t(), binary()) ::
  {:ok, Raxol.Plugins.Manager.Core.t(), binary()} | {:error, term()}

Dispatches an "output" event to all enabled plugins implementing handle_output/2.