pipeline

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package pipeline holds the cirql result-set model and the sequential stage runner. A ResultSet is the list of values flowing between stages; Normalize turns an arbitrary decoded JSON value into the initial result set per the source-normalization rules (spec §5.3).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResultSet

type ResultSet = []value.Value

ResultSet is the data flowing between pipeline stages.

func Normalize

func Normalize(v value.Value) ResultSet

Normalize turns a decoded JSON value into the initial result set: a list maps element-by-element (non-object elements wrapped as {"value": elem}); any other value becomes a single-element set (also wrapped when not an object).

func RunStages

func RunStages(stages []Stage, in ResultSet) (ResultSet, error)

RunStages threads in through every stage left to right, stopping at the first stage error.

type Stage

type Stage interface {
	Execute(in ResultSet) (ResultSet, error)
}

Stage is one executable step of a pipeline.

Jump to

Keyboard shortcuts

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