storage

package
v0.3.13 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrMetadataNotFound = errors.New("storage metadata not found")

Functions

This section is empty.

Types

type DeleteThreadDataRequest

type DeleteThreadDataRequest struct {
	ThreadID       string
	PromptScopeIDs []string
}

type MetadataRecord

type MetadataRecord struct {
	Namespace string
	ID        string
	CreatedAt time.Time
	UpdatedAt time.Time
	Data      json.RawMessage
}

type MetadataStore

type MetadataStore interface {
	PutMetadata(context.Context, MetadataRecord) error
	Metadata(context.Context, string, string) (MetadataRecord, error)
	ListMetadata(context.Context, string) ([]MetadataRecord, error)
	DeleteMetadata(context.Context, string, string) error
}

type Store

type Store interface {
	sessiontree.Repo
	cache.Store
	MetadataStore
	DeleteThreadData(context.Context, DeleteThreadDataRequest) error
	Close() error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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