Documentation
¶
Index ¶
- func All() map[string]HandlerFunc
- func HandleDataTransform(node maestro.Node, state *maestro.ExecutionState) (*maestro.ExecutionResult, error)
- func HandleIf(node maestro.Node, state *maestro.ExecutionState) (*maestro.ExecutionResult, error)
- func HandleInputDef(node maestro.Node, state *maestro.ExecutionState) (*maestro.ExecutionResult, error)
- func HandleOutputDef(node maestro.Node, state *maestro.ExecutionState) (*maestro.ExecutionResult, error)
- func HandleSet(node maestro.Node, state *maestro.ExecutionState) (*maestro.ExecutionResult, error)
- func HandleSwitchMap(node maestro.Node, state *maestro.ExecutionState) (*maestro.ExecutionResult, error)
- func HandleWorkflowLoader(node maestro.Node, state *maestro.ExecutionState) (*maestro.ExecutionResult, error)
- func ResolveString(expression string, state *maestro.ExecutionState) (string, error)
- func ToString(v any) string
- func TryParseNumber(v any) any
- type HandlerFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func All ¶
func All() map[string]HandlerFunc
All returns the complete set of standard handlers keyed by clean node type name. These names match the normalized types produced by n8n.NormalizeNodeType().
func HandleDataTransform ¶
func HandleDataTransform(node maestro.Node, state *maestro.ExecutionState) (*maestro.ExecutionResult, error)
HandleDataTransform performs data conversion operations (hex, base64, regex, etc.).
func HandleIf ¶
func HandleIf(node maestro.Node, state *maestro.ExecutionState) (*maestro.ExecutionResult, error)
HandleIf evaluates conditions and routes to true/false output path.
func HandleInputDef ¶
func HandleInputDef(node maestro.Node, state *maestro.ExecutionState) (*maestro.ExecutionResult, error)
HandleInputDef validates required inputs declared in fields and advances. PlanType defaults are for UI documentation only — not enforced here. The rawDefinition's fields.field[] is the authority for what's required.
func HandleOutputDef ¶
func HandleOutputDef(node maestro.Node, state *maestro.ExecutionState) (*maestro.ExecutionResult, error)
HandleOutputDef collects output values and terminates execution. Reads both the primary output (from planType) and extra outputs.
func HandleSet ¶
func HandleSet(node maestro.Node, state *maestro.ExecutionState) (*maestro.ExecutionResult, error)
HandleSet assigns values to context variables.
func HandleSwitchMap ¶
func HandleSwitchMap(node maestro.Node, state *maestro.ExecutionState) (*maestro.ExecutionResult, error)
HandleSwitchMap maps an input value to a target field via a rule table.
func HandleWorkflowLoader ¶
func HandleWorkflowLoader(node maestro.Node, state *maestro.ExecutionState) (*maestro.ExecutionResult, error)
HandleWorkflowLoader pauses execution to request a sub-workflow dependency.
func ResolveString ¶
ResolveString is a wrapper that ensures the output is a string.
func TryParseNumber ¶
TryParseNumber attempts to convert a string value to a number.
Types ¶
type HandlerFunc ¶
type HandlerFunc func(node maestro.Node, state *maestro.ExecutionState) (*maestro.ExecutionResult, error)
HandlerFunc is the function signature for node handlers.