db

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: May 14, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

func Open

func Open() (*Store, error)

func (*Store) Close

func (s *Store) Close() error

func (*Store) DeleteByPathGroup

func (s *Store) DeleteByPathGroup(ctx context.Context, path, group string) (int64, error)

func (*Store) DistinctGroups

func (s *Store) DistinctGroups(ctx context.Context) ([]string, error)

func (*Store) FindByPathGroup

func (s *Store) FindByPathGroup(ctx context.Context, path, group string) (*TrackedItem, error)

func (*Store) ListByGroup

func (s *Store) ListByGroup(ctx context.Context, group string) ([]TrackedItem, error)

func (*Store) ListRepoRoots

func (s *Store) ListRepoRoots(ctx context.Context, group string) ([]string, error)

ListRepoRoots returns distinct repo roots tracked for a group.

func (*Store) ListUnderPrefix

func (s *Store) ListUnderPrefix(ctx context.Context, prefix, group string) ([]TrackedItem, error)

func (*Store) UpsertItem

func (s *Store) UpsertItem(ctx context.Context, ti *TrackedItem) error

type TrackedItem

type TrackedItem struct {
	ID               int64
	Path             string
	Kind             string
	GroupID          string
	DocumentID       string
	RepoRoot         string
	LastSyncedCommit string
	FileSig          string
	ContentHash      string
	Size             int64
	MTime            int64
	LastSyncedAt     int64
	LastSeenAt       int64
	Published        int64
}

Jump to

Keyboard shortcuts

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