Versions in this module Expand all Collapse all v0 v0.1.1 Sep 11, 2026 Changes in this version + func IsTestSuiteDir(relPath string) bool v0.1.0 Sep 8, 2026 Changes in this version + func BackfillEmbeddings(ctx context.Context, st backfillStore, embedder embed.Embedder, ...) (int, error) + func ChunkSymbol(filePath, language string, sym store.Symbol) []store.SymbolChunk + func ChunkingEnabled() bool + func EmbeddingText(filePath, language string, sym store.Symbol) string + func EmbeddingTextWithNeighbors(filePath, language string, sym store.Symbol, neighbors []string) string + func IsTestFile(name string) bool + func NormalizeDocstring(doc string) string + func SkipDir(name string) bool + func Watch(ctx context.Context, root string, reindex func(context.Context) error, ...) error + type ExtractorFactory func(language string) (LanguageExtractor, bool) + type FakeWalker struct + func NewFakeWalker(records <-chan FileRecord, errs <-chan error) *FakeWalker + func (f *FakeWalker) Walk(_ context.Context, _ string) (<-chan FileRecord, <-chan error) + type FileRecord struct + Hash string + Language string + ModTime int64 + Path string + RelPath string + Size int64 + type FileWalker interface + Walk func(ctx context.Context, root string) (<-chan FileRecord, <-chan error) + type Indexer struct + func NewIndexer(s store.Store, p Parser, e embed.Embedder, w FileWalker, ef ExtractorFactory, ...) *Indexer + func (idx *Indexer) Index(ctx context.Context, root string) (Stats, error) + func (idx *Indexer) SetDocOverlay(m map[string]string) + func (idx *Indexer) SetForceReindex(force bool) + type LanguageExtractor interface + Edges func(tree *tree_sitter.Tree, source []byte, nameToID map[string]int64) []store.Edge + Symbols func(tree *tree_sitter.Tree, source []byte) []store.Symbol + type Parser interface + Close func() error + LanguageNames func() []string + Parse func(ctx context.Context, source []byte, language string) (*tree_sitter.Tree, error) + func NewTreeSitterParser() (Parser, error) + type Stats struct + Duration time.Duration + Edges int + FilesDeleted int + FilesIndexed int + FilesSkipped int + Symbols int + type Walker struct + func NewWalker(log *slog.Logger) *Walker + func NewWalkerWithConfig(log *slog.Logger, cfg WalkerConfig) *Walker + func (w *Walker) SetKnownFiles(files map[string]store.File) + func (w *Walker) Walk(ctx context.Context, root string) (<-chan FileRecord, <-chan error) + type WalkerConfig struct + IncludeTests bool