setup

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: 4 Imported by: 0

Documentation

Overview

Package setup bridges the root workflow package with the handlers and module packages to register default workflow handlers and triggers. It exists to break the import cycle that would occur if the root package directly imported handlers (which has test files that import the root package).

Typical usage is to blank-import this package so that its init function registers the default handler and trigger factories with the workflow engine, and then build an engine using the workflow package:

import (
	"github.com/GoCodeAlone/workflow"
	_ "github.com/GoCodeAlone/workflow/setup"
)

engine, err := workflow.NewEngineBuilder().
	WithAllDefaults().
	Build()

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultHandlers

func DefaultHandlers() []workflow.WorkflowHandler

DefaultHandlers returns all built-in workflow handlers.

func DefaultTriggers

func DefaultTriggers() []interfaces.Trigger

DefaultTriggers returns all built-in triggers.

Types

This section is empty.

Jump to

Keyboard shortcuts

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