handler

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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

func ResolveString(expression string, state *maestro.ExecutionState) (string, error)

ResolveString is a wrapper that ensures the output is a string.

func ToString

func ToString(v any) string

ToString formats values, avoiding scientific notation for whole numbers.

func TryParseNumber

func TryParseNumber(v any) any

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.

Jump to

Keyboard shortcuts

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