Versions in this module Expand all Collapse all v0 v0.12.0 Jul 19, 2026 Changes in this version + func FilePackagesFromContext(ctx context.Context) map[string]string + func ImportPackagesFromContext(ctx context.Context) map[string]string + func WithFilePackages(ctx context.Context, packages map[string]string) context.Context + func WithImportPackages(ctx context.Context, packages map[string]string) context.Context + type AnnotatingParser interface + Language func() string + ParseWithComments func(ctx context.Context, filePath string, content []byte) ([]graph.Node, []graph.Edge, []CommentBlock, error) + type BatchIncrementalSyncer interface + SyncBatchesWithExisting func(ctx context.Context, source FileBatchSource, deletedFiles []string) (*SyncStats, error) + type CommentBlock struct + EndLine int + IsDocstring bool + OwnerStartLine int + StartLine int + Text string + type FileBatchSource func(visitor FileBatchVisitor) error + type FileBatchVisitor func(files map[string]FileInfo) error + type FileInfo struct + Content []byte + Force bool + Hash string + type GraphStore interface + DeleteEdgesByFile func(ctx context.Context, filePath string) error + DeleteGraph func(ctx context.Context) error + DeleteNodesByFiles func(ctx context.Context, filePaths []string) error + DeletePackageSemanticEdges func(ctx context.Context, anchorFiles []string) error + GetEdgesFromNodes func(ctx context.Context, nodeIDs []uint) ([]graph.Edge, error) + GetEdgesToNodes func(ctx context.Context, nodeIDs []uint) ([]graph.Edge, error) + GetFileNodesByPathSuffix func(ctx context.Context, suffix string) ([]graph.Node, error) + GetNodesByFile func(ctx context.Context, filePath string) ([]graph.Node, error) + GetNodesByFiles func(ctx context.Context, filePaths []string) (map[string][]graph.Node, error) + GetNodesByIDs func(ctx context.Context, ids []uint) ([]graph.Node, error) + GetNodesByQualifiedNames func(ctx context.Context, names []string) (map[string][]graph.Node, error) + ListFileNodes func(ctx context.Context) ([]graph.Node, error) + ListImportFileNodes func(ctx context.Context) ([]graph.Node, error) + UpsertAnnotations func(ctx context.Context, annotations []*graph.Annotation) error + UpsertEdges func(ctx context.Context, edges []graph.Edge) error + UpsertNodes func(ctx context.Context, nodes []graph.Node) error + type IncrementalSyncer interface + SyncWithExisting func(ctx context.Context, files map[string]FileInfo, existingFiles []string) (*SyncStats, error) + type MetadataParser interface + ParseWithCommentsAndMetadata func(ctx context.Context, filePath string, content []byte) ([]graph.Node, []graph.Edge, []CommentBlock, ParseMetadata, error) + type PackageContext struct + Files []string + ImportPackages map[string]string + Interfaces []PackageInterfaceInfo + Language string + Nodes []graph.Node + Package string + type PackageDiscoverer interface + DiscoverPackages func(ctx context.Context, opts PackageDiscoveryOptions) (map[string]PackageInfo, error) + type PackageDiscoveryOptions struct + HasParser func(ext string) bool + RootDir string + WalkFiles func(func(path, relPath string) error) error + type PackageEdgeBuilder interface + PackageEdges func(ctx PackageContext) []graph.Edge + type PackageInfo struct + Dir string + Files []string + ImportPath string + Language string + Name string + type PackageInterfaceInfo struct + Methods []string + Name string + type ParseCache interface + LoadParseResult func(ctx context.Context, key ParseCacheKey) ([]byte, bool, error) + StoreParseResult func(ctx context.Context, key ParseCacheKey, payload []byte) error + type ParseCacheKey struct + ContextHash string + FilePath string + ParserVersion string + SourceHash string + type ParseMetadata struct + Interfaces []PackageInterfaceInfo + Package string + type Parser interface + Parse func(filePath string, content []byte) ([]graph.Node, []graph.Edge, error) + ParseWithContext func(ctx context.Context, filePath string, content []byte) ([]graph.Node, []graph.Edge, error) + type SearchWriter interface + RebuildAll func(ctx context.Context) error + RebuildNodes func(ctx context.Context, nodeIDs []uint) error + type SyncStats struct + Added int + Deleted int + Modified int + Skipped int + Unresolved resolve.FilterResolvedDiagnostics + type Transaction interface + Graph func() GraphStore + Search func() SearchWriter + type TransactionalBatchIncrementalSyncer interface + SyncBatchesWithExistingStore func(ctx context.Context, graphStore GraphStore, source FileBatchSource, ...) (*SyncStats, error) + type TransactionalIncrementalSyncer interface + SyncWithExistingStore func(ctx context.Context, graphStore GraphStore, files map[string]FileInfo, ...) (*SyncStats, error) + type UnitOfWork interface + WithinTransaction func(ctx context.Context, fn func(Transaction) error) error + type UnresolvedEdgeStore interface + DeleteUnresolvedEdgesByFingerprints func(ctx context.Context, fingerprints []string) error + FindUnresolvedEdgesByFiles func(ctx context.Context, filePaths []string) ([]graph.Edge, error) + FindUnresolvedEdgesByLookupKeys func(ctx context.Context, keys []string) ([]graph.Edge, error) + MarkUnresolvedIndexReady func(ctx context.Context, version string) error + UnresolvedIndexReady func(ctx context.Context, version string) (bool, error) + UpsertUnresolvedEdges func(ctx context.Context, candidates []graph.UnresolvedEdgeCandidate) error + type VersionedParser interface + ParseCacheVersion func() string