Documentation
¶
Overview ¶
Package velty compiles Datly predicate metadata into Velty-backed runtime evaluators exposed through the exec.PredicateEvaluator port.
Index ¶
Constants ¶
const VariableName = "predicate"
Variables ¶
This section is empty.
Functions ¶
func Names ¶
func Names() []string
Names returns the predicate names available to compilation. The returned slice is detached and sorted for stable authoring metadata and validation.
func References ¶ added in v1.1.0
func References(component *spec.Component, context *typecatalog.ResolutionContext) ([]string, error)
References returns canonical handler type dependencies without changing the caller's metadata or requiring executable implementations yet.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
func (*Builder) CombineAnd ¶
type CompileInput ¶
type CompileInput struct {
Component *spec.Component
InputType reflect.Type
Bindings []bindly.BindingSpec
Lookup LookupType
}
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func (*Context) ExpandWith ¶
type DefinitionCompiler ¶
type DefinitionCompiler struct {
Context *typecatalog.ResolutionContext
Catalog *typecatalog.Catalog
RequireAvailable bool
}
DefinitionCompiler preserves handler type identity before metadata leaves its authored import scope. Transcription also checks compiled package authority so a missing, unlinked, or incompatible predicate cannot become a generated component. Builtin predicate arguments remain strings owned by their templates.
type Program ¶
type Program struct {
// contains filtered or unexported fields
}
func Compile ¶
func Compile(input CompileInput) (*Program, error)