indexer

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiffEdge added in v0.2.0

type DiffEdge struct {
	From string `json:"from"`
	To   string `json:"to"`
	Type string `json:"type"` // "CALLS", "IMPORTS", "CONTAINS", "IMPLEMENTS"
}

type DiffNode added in v0.2.0

type DiffNode struct {
	ID       string `json:"id"`
	Type     string `json:"type"` // "File", "Function", "Class", "Variable"
	Name     string `json:"name"`
	FilePath string `json:"file_path"`
}

type GraphDiff added in v0.2.0

type GraphDiff struct {
	AddedNodes    []DiffNode `json:"added_nodes"`
	DeletedNodes  []DiffNode `json:"deleted_nodes"`
	ModifiedNodes []DiffNode `json:"modified_nodes"`
	AddedEdges    []DiffEdge `json:"added_edges"`
	DeletedEdges  []DiffEdge `json:"deleted_edges"`
}

func DiffGraph added in v0.2.0

func DiffGraph(ctx context.Context, workspaceRoot string, database *db.Database, ignoreList *ignore.IgnoreList, ref string) (*GraphDiff, error)

DiffGraph compares the database state to a historical git commit or branch.

type Indexer

type Indexer struct {
	WorkspaceRoot   string
	Database        *db.Database
	IgnoreList      *ignore.IgnoreList
	LspManager      *lsp.LSPManager
	FunctionsByFile map[string][]db.FunctionEntity
	FunctionsMu     sync.RWMutex
	// contains filtered or unexported fields
}

func NewIndexer

func NewIndexer(workspaceRoot string, database *db.Database, ignoreList *ignore.IgnoreList, lspManager *lsp.LSPManager) *Indexer

func (*Indexer) HandleFileUpdate

func (idx *Indexer) HandleFileUpdate(filePath string)

HandleFileUpdate processes a file modification delta update.

func (*Indexer) IngestWorkspace

func (idx *Indexer) IngestWorkspace() error

IngestWorkspace walks the workspace and performs Pass 1 and Pass 2 on all source files.

Jump to

Keyboard shortcuts

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