engine

package
v1.0.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Migrator

type Migrator interface {
	MigrateState(ctx context.Context, workflowID, fromWorker, toWorker string) error
}

Migrator defines the interface for state migration between nodes or workers.

type StateMigrator

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

StateMigrator implements zero-downtime state migration.

func NewStateMigrator

func NewStateMigrator(store hermod.StateStore) *StateMigrator

NewStateMigrator creates a new StateMigrator.

func (*StateMigrator) MigrateState

func (m *StateMigrator) MigrateState(ctx context.Context, workflowID, from, to string) error

MigrateState performs a coordinated migration of state.

Directories

Path Synopsis
nodes
Package nodes is the one import that makes every workflow node type available.
Package nodes is the one import that makes every workflow node type available.

Jump to

Keyboard shortcuts

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