Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefinitionResult ¶
type DefinitionResult struct {
Name string `json:"name"`
Kind string `json:"kind"`
File string `json:"file"`
LineStart int `json:"line_start"`
LineEnd int `json:"line_end"`
Signature string `json:"signature,omitempty"`
}
func GetDefinition ¶
func GetDefinition(db *sql.DB, name string) (*DefinitionResult, error)
type ExploreResult ¶
type ExploreResult struct {
Name string `json:"name"`
Kind string `json:"kind"`
File string `json:"file"`
LineStart int `json:"line_start"`
LineEnd int `json:"line_end"`
Signature string `json:"signature,omitempty"`
Callers []string `json:"callers"`
Impact struct {
Total int `json:"total_dependents"`
SafeToModify bool `json:"safe_to_modify"`
Reason string `json:"reason"`
} `json:"impact"`
Module struct {
SymbolCount int `json:"symbol_count"`
FnCount int `json:"fn_count"`
DepCount int `json:"dep_count"`
LastIndexed string `json:"last_indexed"`
} `json:"module"`
}
func ExploreSymbol ¶
func ExploreSymbol(db *sql.DB, name string) (*ExploreResult, error)
type ImpactResult ¶
type ImpactResult struct {
Target string `json:"target"`
DirectCallers []string `json:"direct_callers"`
TransitiveRisk []string `json:"transitive_risk"`
SafeToModify bool `json:"safe_to_modify"`
Reason string `json:"reason"`
}
func AnalyzeImpact ¶
type ModuleSummary ¶
type ModuleSummary struct {
File string `json:"file"`
SymbolCount int `json:"symbol_count"`
FnCount int `json:"fn_count"`
DepCount int `json:"dep_count"`
LastIndexed string `json:"last_indexed"`
}
func GetModuleSummary ¶
func GetModuleSummary(db *sql.DB, filePath string) (*ModuleSummary, error)
type SearchResult ¶
type SearchResult struct {
Symbols []SymbolRow `json:"symbols"`
}
func SearchSymbols ¶
Click to show internal directories.
Click to hide internal directories.