query

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

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

func AnalyzeImpact(db *sql.DB, symbolName string, maxDepth int) (*ImpactResult, error)

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

func SearchSymbols(db *sql.DB, query string, kind string) (*SearchResult, error)

type SymbolRow

type SymbolRow struct {
	Name string `json:"name"`
	Kind string `json:"kind"`
	File string `json:"file"`
	Line int    `json:"line"`
}

Jump to

Keyboard shortcuts

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