njs

package
v0.0.0-...-36d6306 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeJS

type NodeJS struct {
	FlowNodeID idwrap.IDWrap
	Name       string
	// contains filtered or unexported fields
}

func New

New creates a new NodeJS instance. If nodejsClient is nil, execution will return an error.

func (NodeJS) GetID

func (n NodeJS) GetID() idwrap.IDWrap

func (NodeJS) GetName

func (n NodeJS) GetName() string

func (*NodeJS) GetOutputVariables

func (n *NodeJS) GetOutputVariables() []string

GetOutputVariables implements node.VariableIntrospector. Returns the output paths this JS node produces (dynamic result object).

func (*NodeJS) GetRequiredVariables

func (n *NodeJS) GetRequiredVariables() []string

GetRequiredVariables implements node.VariableIntrospector. For JS nodes, the code receives the full context so we cannot statically determine which variables are used. We return an empty slice to indicate dynamic variable access.

func (NodeJS) RunAsync

func (n NodeJS) RunAsync(ctx context.Context, req *node.FlowNodeRequest, resultChan chan node.FlowNodeResult)

func (NodeJS) RunSync

func (*NodeJS) SetID

func (n *NodeJS) SetID(id idwrap.IDWrap)

Jump to

Keyboard shortcuts

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