Versions in this module Expand all Collapse all v0 v0.2.1 Jul 21, 2026 Changes in this version type AnalyzeOptions + AuthToken string + CloneDepth int + Ref string v0.2.0 Jun 30, 2026 Changes in this version + var ErrDataDirInUse = errors.New("cartograph: data directory in use") + func DefaultDataDir() string + type AnalyzeOptions struct + Force bool + OnFileProgress func(done, total int) + OnStep func(step string, current, total int) + type AnalyzeResult struct + Commit string + Duration time.Duration + EdgeCount int + IndexedPath string + NodeCount int + RepoHash string + RepoName string + Skipped bool + type CallTreeNode struct + Children []CallTreeNode + EdgeType string + Pruned int + Symbol SymbolMatch + type CatFile struct + Content string + Error string + LineCount int + Path string + type CatOptions struct + Lines string + type CatResult struct + Files []CatFile + type Client struct + func Open(cfg Config) (*Client, error) + func (c *Client) Analyze(ctx context.Context, target string, opts AnalyzeOptions) (*AnalyzeResult, error) + func (c *Client) Cat(ctx context.Context, repo string, files []string, opts CatOptions) (*CatResult, error) + func (c *Client) Close() error + func (c *Client) Context(ctx context.Context, repo, symbol string, opts ContextOptions) (*ContextResult, error) + func (c *Client) Cypher(ctx context.Context, repo, cypher string, _ CypherOptions) (*CypherResult, error) + func (c *Client) Impact(ctx context.Context, repo, symbol string, opts ImpactOptions) (*ImpactResult, error) + func (c *Client) List(ctx context.Context) (*ListResult, error) + func (c *Client) Query(ctx context.Context, repo, text string, opts QueryOptions) (*QueryResult, error) + func (c *Client) RegisterPlugin(ctx context.Context, p pluginsdk.Plugin, opts RegisterPluginOptions) (*PluginDatasetStatus, error) + func (c *Client) Schema(ctx context.Context, repo string) (*SchemaResult, error) + func (c *Client) Search(ctx context.Context, repo, pattern string, opts SearchOptions) (*SearchResult, error) + func (c *Client) Status(ctx context.Context, repo string) (*StatusResult, error) + func (c *Client) Tree(ctx context.Context, repo string, _ TreeOptions) (*TreeResult, error) + type Config struct + DataDir string + type ContextOptions struct + Content bool + Depth int + File string + IncludeRelationships bool + IncludeTests bool + RelationshipLimit int + UID string + type ContextRelationship struct + From SymbolMatch + FromID string + To SymbolMatch + ToID string + type ContextResult struct + CallTree *CallTreeNode + Callees []SymbolMatch + Callers []SymbolMatch + Extends []SymbolMatch + Implementors []SymbolMatch + Importers []SymbolMatch + Imports []SymbolMatch + Processes []SymbolMatch + RelationshipGroups []RelationshipGroup + RelationshipStats *RelationshipStats + Symbol SymbolMatch + type CypherOptions struct + type CypherResult struct + Columns []string + Rows []map[string]any + type ImpactOptions struct + CrossRepo bool + Depth int + Direction string + File string + IncludeTests bool + type ImpactResult struct + Affected []SymbolMatch + Depth int + Target SymbolMatch + type ListResult struct + Repos []RepoInfo + type NodeLabelSummary struct + Count int + Label string + type PluginDatasetStatus struct + ConnectionName string + Duration time.Duration + EdgeCount int + NodeCount int + PluginName string + PluginVersion string + Repo string + RepoHash string + ResourceCount int + type PluginDisplayField struct + Label string + Value string + type PluginQueryMatch struct + EntityLabel string + Fields []PluginDisplayField + NodeID string + Score float64 + type ProcessMatch struct + CallerCount int + HeuristicLabel string + Importance float64 + Name string + Relevance float64 + StepCount int + type QueryOptions struct + Content bool + CrossRepo bool + IncludeTests bool + Limit int + Plugin bool + type QueryResult struct + Definitions []SymbolMatch + PluginResults []PluginQueryMatch + ProcessSymbols []SymbolMatch + Processes []ProcessMatch + TestFlows []ProcessMatch + UsageExamples []SymbolMatch + type RegisterPluginOptions struct + Concurrency int + Config map[string]string + ConnectionName string + MaxEdges int + MaxNodes int + ResourceTypes []string + Timeout time.Duration + type RelTypeSummary struct + Count int + Type string + type RelationshipGroup struct + Relationships []ContextRelationship + Type string + type RelationshipPatternSummary struct + Count int + From string + To string + Type string + type RelationshipStats struct + Depth int + Limit int + ReturnedNodes int + ReturnedRelationships int + Truncated bool + type RepoArtifact struct + Bytes int64 + Name string + type RepoInfo struct + BuiltWith string + EdgeCount int + Embedding string + Hash string + IndexedAt string + Name string + NodeCount int + Type string + type SchemaResult struct + NodeLabels []NodeLabelSummary + Properties []string + RelTypes []RelTypeSummary + RelationshipPatterns []RelationshipPatternSummary + TotalEdges int + TotalNodes int + type SearchMatch struct + After []string + Before []string + Column int + FilePath string + Line int + LineText string + Symbol *SymbolMatch + type SearchOptions struct + ContextLines int + ExcludeTests bool + Files string + FixedStrings bool + IgnoreCase bool + Limit int + type SearchResult struct + DurationMS int64 + FileCount int + FixedStrings bool + IndexStatus string + MatchCount int + Matches []SearchMatch + Message string + Pattern string + Repo string + Truncated bool + type StatusResult struct + Artifacts []RepoArtifact + Branch string + BuiltWith string + Commit string + Duration string + EdgeCount int + EmbeddingDims int + EmbeddingError string + EmbeddingModel string + EmbeddingProgress int + EmbeddingProvider string + EmbeddingStatus string + EmbeddingTotal int + Hash string + Indexed bool + IndexedAt string + Languages []string + Name string + NodeCount int + Path string + Type string + URL string + type SymbolMatch struct + Content string + EndLine int + FilePath string + Label string + Name string + ProcessName string + Repo string + Score float64 + Signature string + StartLine int + type TreeOptions struct + type TreeResult struct + Files []string + Repo string