graph

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Edge

type Edge struct {
	ID          int64  `json:"edge_id"`
	SrcSymbolID int64  `json:"src_symbol_id"`
	DstSymbolID *int64 `json:"dst_symbol_id,omitempty"`
	DstName     string `json:"dst_name"`
	Kind        string `json:"kind"`
	Evidence    string `json:"evidence,omitempty"`
	FileID      int64  `json:"file_id"`
	Line        int    `json:"line"`
}

type ParsedFile

type ParsedFile struct {
	Language   string
	Symbols    []Symbol
	References []Reference
	Edges      []Edge
	Imports    []string
	FileTokens map[string]float64
	TestLinks  []TestLink
}

type Position

type Position struct {
	StartLine int `json:"start_line"`
	StartCol  int `json:"start_col"`
	EndLine   int `json:"end_line"`
	EndCol    int `json:"end_col"`
}

type Reference

type Reference struct {
	ID              int64    `json:"reference_id"`
	FileID          int64    `json:"file_id"`
	SymbolID        *int64   `json:"symbol_id,omitempty"`
	Kind            string   `json:"kind"`
	Name            string   `json:"name"`
	QualifiedName   string   `json:"qualified_name,omitempty"`
	ContextSymbolID *int64   `json:"context_symbol_id,omitempty"`
	Range           Position `json:"range"`
}

type Repo

type Repo struct {
	ID            int64  `json:"id"`
	RootPath      string `json:"root_path"`
	CanonicalPath string `json:"canonical_path"`
}

type Stats

type Stats struct {
	RepoRoot      string         `json:"repo_root"`
	RepoID        int64          `json:"repo_id"`
	Files         int64          `json:"files"`
	Symbols       int64          `json:"symbols"`
	References    int64          `json:"references"`
	Edges         int64          `json:"edges"`
	DirtyFiles    int64          `json:"dirty_files"`
	LastScanID    int64          `json:"last_scan_id"`
	LastIndexedAt string         `json:"last_indexed_at,omitempty"`
	Languages     map[string]int `json:"languages"`
}

type Symbol

type Symbol struct {
	ID            int64    `json:"symbol_id"`
	FileID        int64    `json:"file_id"`
	Language      string   `json:"language"`
	Kind          string   `json:"kind"`
	Name          string   `json:"name"`
	QualifiedName string   `json:"qualified_name"`
	ContainerName string   `json:"container_name,omitempty"`
	Signature     string   `json:"signature,omitempty"`
	Visibility    string   `json:"visibility,omitempty"`
	Range         Position `json:"range"`
	DocSummary    string   `json:"doc_summary,omitempty"`
	StableKey     string   `json:"stable_key"`
	FilePath      string   `json:"file,omitempty"`
}
type TestLink struct {
	TestName        string
	TargetName      string
	Reason          string
	Score           float64
	TestSymbolKey   string
	TargetStableKey string
}

Jump to

Keyboard shortcuts

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