orchestrator

package
v0.0.0-...-d4b30b0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrWorkflowNotBuilt = errors.New("workflow not built")

Functions

This section is empty.

Types

type Orchestrator

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

func NewOrchestrator

func NewOrchestrator(logger *slog.Logger, steps ...flow.AddStep[Step]) *Orchestrator

func (*Orchestrator) Build

func (o *Orchestrator) Build()

func (*Orchestrator) Run

func (o *Orchestrator) Run(ctx context.Context) error

type Step

type Step interface {
	Do(context.Context) error
	Name() string
}

Jump to

Keyboard shortcuts

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