Integrate configuration searches into engine loading

This commit is contained in:
2026-10-24 16:11:03 +00:00
parent 8642337966
commit 2f6c1eca00
8 changed files with 425 additions and 30 deletions

View File

@@ -21,17 +21,21 @@ const (
// Source is an opaque configuration input. Construct sources with File,
// Filesystem.File, Bytes, Reader, or NoSource; the zero value is invalid.
type Source struct {
kind sourceKind
path string
label string
namespace *nativeNamespace
data []byte
reader *readerSource
mapping *document.Node
mapIssue *valueIssue
mapBytes int64
mapNodes int
createErr sourceCreationError
kind sourceKind
path string
label string
namespace *nativeNamespace
data []byte
reader *readerSource
mapping *document.Node
mapIssue *valueIssue
mapBytes int64
mapNodes int
createErr sourceCreationError
search *Search
searchApp string
searchRequired bool
searchIssues []string
}
type sourceKind uint8
@@ -44,6 +48,7 @@ const (
sourceReader
sourceMapping
sourceNone
sourceSearch
)
type sourceCreationError uint8