graph

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Overview

Package graph provides the public graph API for mache.

Types are defined in internal/graph and re-exported here via type aliases so that external consumers (e.g. x-ray) can use mache's in-memory graph without importing internal packages.

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = ig.ErrNotFound

ErrNotFound is returned when a node ID does not exist in the graph.

View Source
var NewMemoryStore = ig.NewMemoryStore

NewMemoryStore creates a new in-memory graph store.

Functions

This section is empty.

Types

type CallExtractor

type CallExtractor = ig.CallExtractor

CallExtractor parses source code and returns qualified function call tokens.

type ContentRef

type ContentRef = ig.ContentRef

ContentRef is a recipe for lazily resolving file content from a backing store.

type ContentResolverFunc

type ContentResolverFunc = ig.ContentResolverFunc

ContentResolverFunc resolves a ContentRef into byte content.

type Graph

type Graph = ig.Graph

Graph is the interface for the FUSE layer and external consumers. Allows swapping the backend (Memory → SQLite → Mmap).

type MemoryStore

type MemoryStore = ig.MemoryStore

MemoryStore is an in-memory implementation of Graph with roaring bitmap indexing.

type Node

type Node = ig.Node

Node is the universal primitive for files and directories. The Mode field declares whether this is a file or directory.

type QualifiedCall

type QualifiedCall = ig.QualifiedCall

QualifiedCall represents a function call with optional package qualifier.

type SourceOrigin

type SourceOrigin = ig.SourceOrigin

SourceOrigin tracks the byte range of a construct in its source file.

Jump to

Keyboard shortcuts

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