repositoryimpl

package
v0.0.47 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type YAMLRepository

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

YAMLRepository implements interaction.Repository using YAML files on Storage.

func NewYAMLRepository

func NewYAMLRepository(s storage.Storage) *YAMLRepository

func (*YAMLRepository) Create

func (*YAMLRepository) DeleteByTaskID

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

func (*YAMLRepository) ExpirePendingByTask

func (r *YAMLRepository) ExpirePendingByTask(ctx context.Context, taskID string) (int, error)

func (*YAMLRepository) Get

func (*YAMLRepository) GetByResponseToken

func (r *YAMLRepository) GetByResponseToken(ctx context.Context, token string) (*interaction.Interaction, error)

func (*YAMLRepository) List

func (r *YAMLRepository) List(ctx context.Context, taskID string, taskIDs []string, limit, offset int) ([]*interaction.Interaction, int, error)

func (*YAMLRepository) NotifyTaskArchived added in v0.0.46

func (r *YAMLRepository) NotifyTaskArchived(ctx context.Context, projectID, taskID string) error

NotifyTaskArchived updates the in-memory index so that interactions for the given task resolve to the archived path.

func (*YAMLRepository) NotifyTaskUnarchived added in v0.0.46

func (r *YAMLRepository) NotifyTaskUnarchived(ctx context.Context, projectID, taskID string) error

NotifyTaskUnarchived updates the in-memory index so that interactions for the given task resolve to the active path.

func (*YAMLRepository) Update

Jump to

Keyboard shortcuts

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