markdown

package
v1.11.6 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Record

type Record struct {
	ID        string
	Scope     string
	SessionID string
	Role      string
	Content   string
	Tags      []string
	CreatedAt time.Time
}

type Store

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

func NewStore

func NewStore(root string) (*Store, error)

func (*Store) Delete

func (s *Store) Delete(ctx context.Context, id string) error

func (*Store) List

func (s *Store) List(ctx context.Context, scope, sessionID string) ([]Record, error)

func (*Store) Root

func (s *Store) Root() string

func (*Store) Save

func (s *Store) Save(ctx context.Context, rec Record) error

func (*Store) Search

func (s *Store) Search(ctx context.Context, query string, limit int) ([]Record, error)

Jump to

Keyboard shortcuts

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