Documentation
¶
Index ¶
- type ScriptNode
- func (n *ScriptNode) Config() map[string]any
- func (n *ScriptNode) ExecuteBoard(ctx graph.ExecutionContext, board *graph.Board) error
- func (n *ScriptNode) ID() string
- func (n *ScriptNode) InputPorts() []graph.Port
- func (n *ScriptNode) OutputPorts() []graph.Port
- func (n *ScriptNode) SetConfig(c map[string]any)
- func (n *ScriptNode) Type() string
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
Click to show internal directories.
Click to hide internal directories.