scriptnode

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ScriptNode

type ScriptNode struct {
	// contains filtered or unexported fields
}

ScriptNode is a script-based graph node that delegates execution to a language-agnostic script.Runtime.

func New

func New(id, nodeType, scriptSrc string, config map[string]any, rt script.Runtime, extras ...bindings.BindingFunc) *ScriptNode

New creates a ScriptNode with the given script and configuration.

func (*ScriptNode) Config

func (n *ScriptNode) Config() map[string]any

func (*ScriptNode) ExecuteBoard

func (n *ScriptNode) ExecuteBoard(ctx graph.ExecutionContext, board *graph.Board) error

ExecuteBoard runs the script with board, expr, stream, and runtime bindings.

func (*ScriptNode) ID

func (n *ScriptNode) ID() string

func (*ScriptNode) InputPorts

func (n *ScriptNode) InputPorts() []graph.Port

func (*ScriptNode) OutputPorts

func (n *ScriptNode) OutputPorts() []graph.Port

func (*ScriptNode) SetConfig

func (n *ScriptNode) SetConfig(c map[string]any)

func (*ScriptNode) Type

func (n *ScriptNode) Type() string

Jump to

Keyboard shortcuts

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