Documentation
¶
Index ¶
- func NormalizeQueryRequest(input QueryRequestInput) (types.QueryRequest, error)
- func ParseSearchQuery(raw string) (types.QueryRequest, error)
- type BuildEvent
- type BuildEventKind
- type BuildRequest
- type BuildResult
- type BuildService
- type QueryRequestInput
- type QueryRunner
- type QueryService
- type RepoBuildResult
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 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 ¶
func (s BuildService) Run(ctx context.Context, req BuildRequest) (BuildResult, error)
type QueryRequestInput ¶
type QueryRunner ¶
type QueryRunner interface {
RunRequest(req types.QueryRequest) (string, error)
}
type QueryService ¶
type QueryService struct {
LoadEngine func(string) (QueryRunner, error)
}
func (QueryService) Run ¶
func (s QueryService) Run(input QueryRequestInput) (string, types.QueryRequest, error)
type RepoBuildResult ¶
Click to show internal directories.
Click to hide internal directories.