Vibe.Plugin.Manager.Pipeline (vibe v0.2.2)

Copy Markdown View Source

Composes ordered plugin pipeline callbacks.

Summary

Types

plugin_entry()

@type plugin_entry() :: {module(), %{state: term()}}

Functions

run(plugins, callback, initial_value, context, state, call_plugin, put_plugin_state, log_failure)

@spec run(
  [plugin_entry()],
  atom(),
  term(),
  map(),
  term(),
  function(),
  function(),
  function()
) ::
  {:ok, term()} | {{:ok, term()} | {:block, term()}, term()}