repositoryimpl

package
v0.0.51 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSONLRepository added in v0.0.41

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

JSONLRepository implements tasklog.Repository using JSONL files on the local filesystem.

func NewJSONLRepository added in v0.0.41

func NewJSONLRepository(baseDir string) *JSONLRepository

func (*JSONLRepository) CleanupOlderThan added in v0.0.41

func (r *JSONLRepository) CleanupOlderThan(ctx context.Context, maxAge time.Duration) (int, error)

func (*JSONLRepository) Close added in v0.0.41

func (r *JSONLRepository) Close()

Close closes all open turn file handles.

func (*JSONLRepository) Create added in v0.0.41

func (r *JSONLRepository) Create(ctx context.Context, l *tasklog.TaskLog) error

func (*JSONLRepository) DeleteByTaskID added in v0.0.41

func (r *JSONLRepository) DeleteByTaskID(ctx context.Context, taskID string) (int, error)

func (*JSONLRepository) List added in v0.0.41

func (r *JSONLRepository) List(ctx context.Context, taskID string, taskIDs []string, limit, offset int) ([]*tasklog.TaskLog, int, error)

Jump to

Keyboard shortcuts

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