Versions in this module Expand all Collapse all v2 v2.3.4 Sep 2, 2026 v2.3.3 Sep 2, 2026 v2.3.2 Sep 1, 2026 v2.3.1 Sep 1, 2026 v2.3.0 Sep 1, 2026 Changes in this version + const ConfidenceAmbiguous + const ConfidenceExtracted + const ConfidenceInferred + const KindClass + const KindConstant + const KindEnum + const KindFunc + const KindInterface + const KindMethod + const KindModule + const KindPackage + const KindStruct + const KindTable + const KindType + const KindVariable + const RelationCalls + const RelationContains + const RelationDefines + const RelationExports + const RelationExtends + const RelationImplements + const RelationImports + const RelationInstantiates + const RelationReferences + const RelationUses + const RelationUsesType + const VisibilityInternal + const VisibilityPrivate + const VisibilityProtected + const VisibilityPublic + type AnalyticsReport struct + AverageCohesion float64 + Communities []CommunityCohesion + GeneratedAt time.Time + GodNodes []GodNode + ImportCycles []ImportCycle + Project string + TotalFiles int + TotalRelations int + TotalSymbols int + func ComputeAnalytics(graph *CodeGraph) *AnalyticsReport + type CodeGraph struct + Project string + Relations []Relation + Symbols []Symbol + type CommunityCohesion struct + CohesionScore float64 + CommunityID int + InternalEdges int + Label string + Members []string + PossibleEdges int + type FileWatcher struct + func NewFileWatcher(cfg WatcherConfig) *FileWatcher + func (w *FileWatcher) ScanOnce() []string + func (w *FileWatcher) Watch(ctx context.Context, onFileChanged func(path string)) error + type GodNode struct + Degree int + FilePath string + ID string + InDegree int + Kind string + Name string + OutDegree int + Score float64 + type ImportCycle struct + CyclePath []string + Files []string + ID string + type Parameter struct + Name string + Type string + type Relation struct + Confidence float64 + CreatedAt time.Time + ID int64 + Project string + Reasoning string + Relation string + SourceID string + TargetID string + type Service interface + Analyze func(ctx context.Context, project string) (*AnalyticsReport, error) + GetGraph func(ctx context.Context, project string) (*CodeGraph, error) + IngestPath func(ctx context.Context, rootPath string, project string, maxFiles int) (*AnalyticsReport, error) + ListSymbols func(ctx context.Context, filter SymbolFilter) ([]Symbol, error) + type Store interface + CountSymbols func(ctx context.Context, filter SymbolFilter) (int, error) + DeleteRelationsByFile func(ctx context.Context, project, filePath string) error + DeleteRelationsByProject func(ctx context.Context, project string) error + DeleteSymbolsByFile func(ctx context.Context, project, filePath string) error + DeleteSymbolsByProject func(ctx context.Context, project string) error + GetGraph func(ctx context.Context, project string) (*CodeGraph, error) + GetSymbolByID func(ctx context.Context, id string) (*Symbol, error) + ListRelationsBySymbol func(ctx context.Context, symbolID string) ([]Relation, error) + ListSymbols func(ctx context.Context, filter SymbolFilter) ([]Symbol, error) + SaveRelations func(ctx context.Context, relations []Relation) error + SaveSymbols func(ctx context.Context, symbols []Symbol) error + type Symbol struct + Complexity int + CreatedAt time.Time + DocSummary string + EndColumn int + EndLine int + FileHash string + FilePath string + ID string + Kind string + LineNumber int + Metadata map[string]any + Name string + PackageName string + Parameters []Parameter + ParentID string + Project string + ReturnType string + Signature string + StartColumn int + UpdatedAt time.Time + Visibility string + type SymbolFilter struct + FilePath string + Kind string + Limit int + Offset int + PackageName string + Project string + Query string + type WatcherConfig struct + DebounceDuration time.Duration + Directory string + Extensions []string + IgnoreDirs []string + PollInterval time.Duration + Project string + func DefaultWatcherConfig(dir, project string) WatcherConfig