Documentation
¶
Index ¶
Constants ¶
View Source
const SchemaVersion = "projectlens-graph/v2"
SchemaVersion bumps when the document shape changes. v2 added per-edge `provenance` and `confidence_class` fields (additive — v1 readers ignore them).
Variables ¶
View Source
var AllowedEdgeTypes = []string{
"calls", "implements", "imports",
"reads_table", "writes_table",
"co_changes",
"knowledge_about",
}
AllowedEdgeTypes is the canonical raw-edge_type vocabulary the exporter and the --edges flag both consult. Adding a new edge_type to the indexer requires extending this list in the same change.
Functions ¶
func IsValidEdgeType ¶
Types ¶
type GraphExporter ¶
type GraphExporter struct {
// contains filtered or unexported fields
}
GraphExporter streams nodes + edges from Postgres directly to an io.Writer.
func NewGraphExporter ¶
func NewGraphExporter(db *storage.DB, insp indexstate.Inspector) *GraphExporter
Click to show internal directories.
Click to hide internal directories.