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 ¶
var ErrNotFound = ig.ErrNotFound
ErrNotFound is returned when a node ID does not exist in the graph.
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 ¶
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 ¶
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.