Help us shape the future of Go! Take the 2026 Go Developer Survey

engine

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: BSD-2-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ResumePort = protocol.ResumePort
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Activation

type Activation struct {
	NodeID  string
	Port    string
	Data    map[string]any
	Attempt int
}

func TriggerActivation

func TriggerActivation(triggerNodeID string, data map[string]any) Activation

type Deferred

type Deferred struct {
	Activation

	RunAt time.Time
}

type Engine

type Engine struct {
	// contains filtered or unexported fields
}

func New

func New(nodes NodeCreator) *Engine

func (*Engine) Run

func (e *Engine) Run(ctx context.Context, workflow *models.Workflow, execution *models.ExecutionContext, start Activation) ([]Deferred, error)

func (*Engine) Validate

func (e *Engine) Validate(ctx context.Context, workflow *models.Workflow) error

type NodeCreator

type NodeCreator interface {
	CreateNode(ctx context.Context, nodeType, nodeID string, config map[string]any) (protocol.Node, error)
}

Jump to

Keyboard shortcuts

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