file

package
v0.8.5 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package file provides file-based checkpoint storage implementation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFileCheckpointStore

func NewFileCheckpointStore(path string) (store.CheckpointStore, error)

NewFileCheckpointStore creates a new file-based checkpoint store

Types

type FileCheckpointStore

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

FileCheckpointStore provides file-based checkpoint storage

func (*FileCheckpointStore) Clear

func (f *FileCheckpointStore) Clear(ctx context.Context, executionID string) error

Clear implements CheckpointStore interface for file storage

func (*FileCheckpointStore) Delete

func (f *FileCheckpointStore) Delete(_ context.Context, checkpointID string) error

Delete implements CheckpointStore interface for file storage

func (*FileCheckpointStore) GetLatestByThread added in v0.8.2

func (f *FileCheckpointStore) GetLatestByThread(ctx context.Context, threadID string) (*store.Checkpoint, error)

GetLatestByThread returns the latest checkpoint for a thread_id

func (*FileCheckpointStore) List

func (f *FileCheckpointStore) List(_ context.Context, executionID string) ([]*store.Checkpoint, error)

List implements CheckpointStore interface for file storage

func (*FileCheckpointStore) ListByThread added in v0.8.2

func (f *FileCheckpointStore) ListByThread(_ context.Context, threadID string) ([]*store.Checkpoint, error)

ListByThread returns all checkpoints for a specific thread_id using index

func (*FileCheckpointStore) Load

func (f *FileCheckpointStore) Load(_ context.Context, checkpointID string) (*store.Checkpoint, error)

Load implements CheckpointStore interface for file storage

func (*FileCheckpointStore) Save

func (f *FileCheckpointStore) Save(_ context.Context, checkpoint *store.Checkpoint) error

Save implements CheckpointStore interface for file storage

Jump to

Keyboard shortcuts

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