store

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InMemoryState

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

func (*InMemoryState) Load

func (s *InMemoryState) Load() (PipelineState, error)

func (*InMemoryState) Save

func (s *InMemoryState) Save(state PipelineState) error

type PipelineState

type PipelineState struct {
	CurrentStageIndex int
	// 如果Stage内部有多个Unit并行或串行执行的上下文,也需要记录当前Unit的进度
	CurrentUnitIndex int
	Status           string
	// 可以存储上一阶段的输出数据,用于从中间点恢复
	LastOutput any
}

Jump to

Keyboard shortcuts

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