all

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2026 License: MIT Imports: 26 Imported by: 0

Documentation

Overview

Package all provides a single import point for all built-in workflow engine plugins. Applications that embed the workflow engine can call LoadAll to register every standard plugin in one step instead of importing and wiring each plugin package individually.

Example – minimal embedded engine setup:

engine := workflow.NewStdEngine(app, logger)
if err := all.LoadAll(engine); err != nil {
    log.Fatalf("failed to load plugins: %v", err)
}

If you need finer control (e.g. to skip a plugin or add your own), use DefaultPlugins to obtain the slice and modify it before loading:

plugins := all.DefaultPlugins()
plugins = append(plugins, myCustomPlugin)
for _, p := range plugins {
    engine.LoadPlugin(p)
}

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultPlugins

func DefaultPlugins() []plugin.EnginePlugin

DefaultPlugins returns the standard set of built-in engine plugins. The slice is freshly allocated on each call so callers may safely append custom plugins without affecting other callers.

func LoadAll

func LoadAll(engine PluginLoader) error

LoadAll loads all default built-in plugins into the given engine. It is equivalent to calling engine.LoadPlugin for each plugin returned by DefaultPlugins. The first error encountered is returned immediately.

Types

type PluginLoader

type PluginLoader interface {
	LoadPlugin(p plugin.EnginePlugin) error
}

PluginLoader is the minimal interface required by LoadAll. *workflow.StdEngine satisfies this interface.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL