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

result

package
v0.98.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package result is the outcome of a flow run: a per-node record plus the flow-level verdict. The engine records failures here and keeps going (skipping dependents) rather than returning a Go error, so a caller sees the whole run.

Index

Constants

View Source
const (
	SkipDependencyFailed  = "dependency_failed"
	SkipDependencySkipped = "dependency_skipped"
	SkipRoutedAway        = "routed_away_by_branch"
	SkipAbortedAfterFail  = "aborted_after_failure"
	SkipMissingInputs     = "missing_inputs"
)

Skip reasons — a wire contract with echopoint; the exact strings must not drift.

Variables

This section is empty.

Functions

This section is empty.

Types

type FlowResult

type FlowResult struct {
	Success bool
	Nodes   map[string]*NodeResult
	Outputs value.Map
	Error   string
	Code    string
}

FlowResult is a whole run's outcome. Success is false if any on_success node failed or the flow failed validation.

func (*FlowResult) Node

func (f *FlowResult) Node(id string) *NodeResult

Node returns a node's result (nil if absent).

type NodeResult

type NodeResult struct {
	ID         string
	Kind       spi.Kind
	Status     Status
	Outputs    value.Map
	Assertions assert.Results
	Error      string
	Code       string
	SkipReason string
}

NodeResult records one node's outcome.

type Status

type Status string

Status is a node's terminal state.

const (
	StatusSuccess Status = "success"
	StatusFailed  Status = "failed"
	StatusSkipped Status = "skipped"
)

Jump to

Keyboard shortcuts

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