memory

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AwaitStore

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

AwaitStore 是 AwaitStore 的纯内存实现。用于测试。

func NewAwaitStore

func NewAwaitStore() *AwaitStore

func (*AwaitStore) CreateBinding

func (s *AwaitStore) CreateBinding(_ context.Context, binding store.AwaitBinding) error

func (*AwaitStore) FindByProviderTaskID

func (s *AwaitStore) FindByProviderTaskID(_ context.Context, providerTaskID string) (*store.AwaitBinding, error)

func (*AwaitStore) ListByTask

func (s *AwaitStore) ListByTask(_ context.Context, taskID string) ([]store.AwaitBinding, error)

func (*AwaitStore) ListPending

func (s *AwaitStore) ListPending(_ context.Context) ([]store.AwaitBinding, error)

func (*AwaitStore) ResolveBinding

func (s *AwaitStore) ResolveBinding(_ context.Context, bindingID string) (bool, error)

type TraceStore

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

TraceStore 是 TraceStore 的纯内存实现。用于测试。

func NewTraceStore

func NewTraceStore() *TraceStore

func (*TraceStore) AppendTrace

func (s *TraceStore) AppendTrace(_ context.Context, taskID string, events []runtime.TraceEvent) error

func (*TraceStore) ReplayTrace

func (s *TraceStore) ReplayTrace(_ context.Context, taskID string, sinceSeq int64) ([]runtime.TraceEvent, error)

type WorkflowStore

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

WorkflowStore 是 WorkflowStore 的纯内存实现。用于测试。

func NewWorkflowStore

func NewWorkflowStore() *WorkflowStore

func (*WorkflowStore) CreateRun

func (s *WorkflowStore) CreateRun(_ context.Context, meta store.RunMeta) (*store.WorkflowRun, error)

func (*WorkflowStore) CreateTask

func (s *WorkflowStore) CreateTask(_ context.Context, runID string, meta store.TaskMeta) (*store.Task, error)

func (*WorkflowStore) ListTasks

func (s *WorkflowStore) ListTasks(_ context.Context, runID string) ([]store.Task, error)

func (*WorkflowStore) LoadNodeStates

func (s *WorkflowStore) LoadNodeStates(_ context.Context, taskID string) ([]store.NodeRecord, error)

func (*WorkflowStore) LoadPlan

func (s *WorkflowStore) LoadPlan(_ context.Context, taskID string) (*runtime.Plan, error)

func (*WorkflowStore) LoadRun

func (s *WorkflowStore) LoadRun(_ context.Context, runID string) (*store.WorkflowRun, error)

func (*WorkflowStore) LoadTask

func (s *WorkflowStore) LoadTask(_ context.Context, taskID string) (*store.Task, error)

func (*WorkflowStore) PersistNode

func (s *WorkflowStore) PersistNode(_ context.Context, taskID string, nodeName string, state runtime.NodeState, output map[string]any) error

func (*WorkflowStore) SavePlan

func (s *WorkflowStore) SavePlan(_ context.Context, taskID string, plan *runtime.Plan) error

func (*WorkflowStore) UpdateRunStatus

func (s *WorkflowStore) UpdateRunStatus(_ context.Context, runID string, status string) error

Jump to

Keyboard shortcuts

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