Versions in this module Expand all Collapse all v0 v0.1.1-nightly.202606060822.62e7189 Jun 5, 2026 v0.1.1-nightly.202606050928.887b5b7 Jun 5, 2026 v0.1.1-nightly.202606031041.bfdcdd4 Jun 2, 2026 v0.1.1-nightly.202606021001.5d71430 Jun 2, 2026 v0.1.0 Jun 2, 2026 Changes in this version + var ErrNoSnapshots = errors.New("no snapshots found") + func BatchSpans(spans []OTelSpan, batchSize int) [][]OTelSpan + func FormatSnapshot(snapshot CodeGraphSnapshot) string + type CodeGraph struct + func LoadSnapshot(path string) (*CodeGraph, error) + func NewCodeGraph() *CodeGraph + func (cg *CodeGraph) AddEdge(edge Edge) error + func (cg *CodeGraph) AddNode(node Node) error + func (cg *CodeGraph) GetEdges(nodeID string) []Edge + func (cg *CodeGraph) GetNode(id string) (Node, bool) + func (cg *CodeGraph) Persist(path string) error + func (cg *CodeGraph) QueryNodes(query NodeQuery) []Node + func (cg *CodeGraph) Snapshot() CodeGraphData + func (cg *CodeGraph) Stats() Stats + type CodeGraphData struct + Edges []Edge + Nodes []Node + SnapshotAt time.Time + Version string + type CodeGraphSnapshot struct + Complexity ComplexityMetrics + Delta *GraphDelta + EdgeCount int + FileCount int + GraphStats GraphStats + Modules []ModuleInfo + ProjectRoot string + SessionID string + SymbolCount int + Timestamp time.Time + TopSymbols []SymbolInfo + type ComplexityMetrics struct + AvgCyclomatic float64 + AvgLOC float64 + MaxCyclomatic int + MaxLOC int + TotalFunctions int + type Edge struct + Calls int + CreatedAt time.Time + From string + Kind EdgeKind + To string + UpdatedAt time.Time + type EdgeKind string + const EdgeCalledBy + const EdgeCalls + const EdgeContains + const EdgeImplements + const EdgeImports + const EdgeInherits + const EdgeUses + type GraphDelta struct + ComplexityDelta float64 + EdgesAdded int + EdgesRemoved int + FilesAdded int + FilesModified int + FilesRemoved int + NewSymbols []string + NodesAdded int + NodesRemoved int + RemovedSymbols []string + func CompareSnapshots(old, cur *CodeGraphSnapshot) *GraphDelta + type GraphStats struct + EdgesByKind map[string]int + FilesByLang map[string]int + NodesByKind map[string]int + type ModuleInfo struct + Files int + Functions int + Imports []string + Name string + Path string + Types int + type Node struct + CreatedAt time.Time + EndLine int + ID string + Kind NodeKind + Language string + Line int + Name string + Path string + TokenCount int + UpdatedAt time.Time + type NodeKind string + const NodeConstant + const NodeFunction + const NodeInterface + const NodeMethod + const NodePackage + const NodeStruct + const NodeVariable + type NodeQuery struct + Kind NodeKind + Limit int + Offset int + Path string + type OTelCollector struct + func NewOTelCollector(cfg OTelCollectorConfig) *OTelCollector + func (c *OTelCollector) SendBatch(_ context.Context, batch *SpanBatch) error + type OTelCollectorConfig struct + BatchSize int + Endpoint string + FlushInterval time.Duration + Insecure bool + RetryConfig RetryConfig + Timeout time.Duration + func DefaultOTelCollectorConfig() OTelCollectorConfig + type OTelEvent struct + Attributes map[string]string + Name string + Timestamp time.Time + type OTelSpan struct + Attributes map[string]string + EndTime time.Time + Events []OTelEvent + Name string + ParentSpanID string + SpanID string + StartTime time.Time + Status string + TraceID string + func ConvertTranscriptToOTelSpan(entry map[string]interface{}) OTelSpan + type RetryConfig struct + BackoffMultiplier float64 + InitialBackoff time.Duration + MaxRetries int + type SnapshotStore struct + func NewSnapshotStore(path string) *SnapshotStore + func (s *SnapshotStore) Load() (*CodeGraphSnapshot, error) + func (s *SnapshotStore) Save(snapshot CodeGraphSnapshot) error + type SpanBatch struct + BatchID string + CreatedAt time.Time + Spans []OTelSpan + func NewSpanBatch() *SpanBatch + func (sb *SpanBatch) AddSpan(span OTelSpan) + func (sb *SpanBatch) IsFull(maxSize int) bool + func (sb *SpanBatch) Size() int + func (sb *SpanBatch) ToJSON() ([]byte, error) + type Stats struct + ByKind map[string]int + Edges int + Nodes int + type SymbolInfo struct + CallCount int + File string + Kind string + Line int + Name string