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.
Click to show internal directories.
Click to hide internal directories.