Help us shape the future of Go! Take the 2026 Go Developer Survey

app

package
v1.12.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NormalizeQueryRequest

func NormalizeQueryRequest(input QueryRequestInput) (types.QueryRequest, error)

func ParseSearchQuery

func ParseSearchQuery(raw string) (types.QueryRequest, error)

ParseSearchQuery routes a freeform structural question into the canonical graph-truth query contract used by the CLI and MCP surfaces.

Types

type BuildEvent

type BuildEvent struct {
	Kind    BuildEventKind
	Stage   types.BuildStage
	Message string
	Count   int
}

type BuildEventKind

type BuildEventKind string
const (
	BuildEventStart    BuildEventKind = "start"
	BuildEventStage    BuildEventKind = "stage"
	BuildEventWarning  BuildEventKind = "warning"
	BuildEventComplete BuildEventKind = "complete"
)

type BuildRequest

type BuildRequest struct {
	RepoRoot  string
	OutDir    string
	Languages []string
	Drivers   []string
	Patchers  []string
	Obsidian  types.ObsidianConfig
	Observe   func(BuildEvent)
}

type BuildResult

type BuildResult struct {
	GraphPath     string
	HTMLPath      string
	ReportPath    string
	ObsidianPath  string
	Files         int
	Facts         int
	StageReports  []pipeline.StageReport
	Warnings      []string
	DetectedFiles []string
	Graph         *types.Graph
	Repos         []RepoBuildResult
	Snapshot      *export.Snapshot
}

type BuildService

type BuildService struct {
	RunPipeline      func(context.Context, string, types.BuildRequest, pipeline.Observer) (pipeline.Result, error)
	WriteHTML        func(*types.Graph, string) error
	WriteReport      func(*types.Graph, string) error
	WriteObsidian    func(*types.Graph, string) error
	ResolveVaultDir  func(string) string
	PublicationFault func(string) error
}

func (BuildService) Run

type QueryRequestInput

type QueryRequestInput struct {
	GraphPath         string
	Kind              types.QueryKind
	Subject           string
	Target            string
	Limit             int
	IncludeProvenance bool
}

type QueryRunner

type QueryRunner interface {
	RunRequest(req types.QueryRequest) (string, error)
}

type QueryService

type QueryService struct {
	LoadEngine func(string) (QueryRunner, error)
}

func (QueryService) Run

type RepoBuildResult

type RepoBuildResult struct {
	RepoRoot   string
	GraphPath  string
	ReportPath string
}

Jump to

Keyboard shortcuts

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