indexer

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2026 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AutoIndexer

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

func New

func New(sc FileGetter, graph GraphWriter, cache *memory.ContentCache, registry *parser.ParserRegistry) *AutoIndexer

func (*AutoIndexer) Run

func (ai *AutoIndexer) Run(ctx context.Context, repos []scanner.RepoInfo)

type FileGetter

type FileGetter interface {
	GetFileContent(ctx context.Context, repo, path string) (string, error)
}

type GraphWriter

type GraphWriter interface {
	CreateEntities([]memory.Entity) ([]memory.Entity, error)

	CreateRelations([]memory.Relation) ([]memory.Relation, error)

	AddObservations([]memory.Observation) ([]memory.Observation, error)

	SearchNodes(query string) (memory.KnowledgeGraph, error)

	EntityCount() (int64, error)
}

Jump to

Keyboard shortcuts

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