index

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Rebuild

func Rebuild(ctx context.Context, reg *registry.Registry, store *Store, providerFilter string) (int, error)

func UpdateIncremental

func UpdateIncremental(ctx context.Context, reg *registry.Registry, store *Store, providerFilter string) (int, error)

Types

type ListOpts

type ListOpts struct {
	Provider      string
	ProjectFilter string
	ProjectExact  string
	ProjectCWD    string // exact path or any session under this directory
	Limit         int
	Offset        int
	Query         string
}

type Store

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

func Open

func Open(path string) (*Store, error)

func (*Store) Close

func (s *Store) Close() error

func (*Store) Count added in v0.1.4

func (s *Store) Count(opts ListOpts) (int, error)

func (*Store) CountByProvider

func (s *Store) CountByProvider() (map[string]int, error)

func (*Store) FindByID

func (s *Store) FindByID(id string) (*model.Summary, error)

func (*Store) FindMigration added in v0.1.2

func (s *Store) FindMigration(providerID, originDigest string) (sessionID, storagePath string, ok bool, err error)

FindMigration returns a prior migration target for the same origin digest.

func (*Store) Get

func (s *Store) Get(providerID, id string) (*model.Summary, error)

func (*Store) GetMeta

func (s *Store) GetMeta(key string) (string, error)

func (*Store) List

func (s *Store) List(opts ListOpts) ([]model.Summary, error)

func (*Store) NeedsRefresh

func (s *Store) NeedsRefresh(providerID string, storagePath string, mtime int64) (bool, error)

func (*Store) RecordMigration added in v0.1.2

func (s *Store) RecordMigration(providerID, originDigest, sessionID, storagePath string) error

RecordMigration stores a successful migration for deduplication (SQLite and JSONL targets).

func (*Store) SetMeta

func (s *Store) SetMeta(key, value string) error

func (*Store) Upsert

func (s *Store) Upsert(summary model.Summary) error

Jump to

Keyboard shortcuts

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