inspectreport

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2026 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssetGraphReport added in v0.7.0

type AssetGraphReport struct {
	Version int         `json:"version"`
	Nodes   []GraphNode `json:"nodes"`
	Edges   []GraphEdge `json:"edges"`
}

func BuildAssetGraph added in v0.7.0

func BuildAssetGraph(ir gwdkir.Program) AssetGraphReport

type EndpointGraphReport

type EndpointGraphReport struct {
	Version int         `json:"version"`
	Nodes   []GraphNode `json:"nodes"`
	Edges   []GraphEdge `json:"edges"`
}

func BuildEndpointGraph

func BuildEndpointGraph(config gowdk.Config, ir gwdkir.Program) EndpointGraphReport

type GraphEdge

type GraphEdge struct {
	From string `json:"from"`
	To   string `json:"to"`
	Kind string `json:"kind"`
}

type GraphNode

type GraphNode struct {
	ID     string         `json:"id"`
	Kind   string         `json:"kind"`
	Name   string         `json:"name,omitempty"`
	Source string         `json:"source,omitempty"`
	Span   *SourceSpan    `json:"span,omitempty"`
	Props  map[string]any `json:"props,omitempty"`
}

type Node

type Node struct {
	ID       string         `json:"id"`
	Kind     string         `json:"kind"`
	Name     string         `json:"name,omitempty"`
	Source   string         `json:"source,omitempty"`
	Span     *SourceSpan    `json:"span,omitempty"`
	Props    map[string]any `json:"props,omitempty"`
	Children []Node         `json:"children,omitempty"`
}

type SourcePosition

type SourcePosition struct {
	Line   int `json:"line"`
	Column int `json:"column"`
}

type SourceSpan

type SourceSpan struct {
	Start SourcePosition `json:"start"`
	End   SourcePosition `json:"end"`
}

type TreeDiagnostic added in v0.7.0

type TreeDiagnostic struct {
	Code    string   `json:"code"`
	Message string   `json:"message"`
	Path    []string `json:"path,omitempty"`
}

type TreeReport

type TreeReport struct {
	Version     int              `json:"version"`
	Root        Node             `json:"root"`
	Edges       []GraphEdge      `json:"edges,omitempty"`
	Diagnostics []TreeDiagnostic `json:"diagnostics,omitempty"`
}

func BuildTree

func BuildTree(ir gwdkir.Program) TreeReport

Jump to

Keyboard shortcuts

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