Documentation
¶
Index ¶
- type NodeJS
- func (n NodeJS) GetID() idwrap.IDWrap
- func (n NodeJS) GetName() string
- func (n *NodeJS) GetOutputVariables() []string
- func (n *NodeJS) GetRequiredVariables() []string
- func (n NodeJS) RunAsync(ctx context.Context, req *node.FlowNodeRequest, ...)
- func (n NodeJS) RunSync(ctx context.Context, req *node.FlowNodeRequest) node.FlowNodeResult
- func (n *NodeJS) SetID(id idwrap.IDWrap)
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 ¶
func New(id idwrap.IDWrap, name, jsCode string, nodejsClient node_js_executorv1connect.NodeJsExecutorServiceClient) *NodeJS
New creates a new NodeJS instance. If nodejsClient is nil, execution will return an error.
func (*NodeJS) GetOutputVariables ¶
GetOutputVariables implements node.VariableIntrospector. Returns the output paths this JS node produces (dynamic result object).
func (*NodeJS) GetRequiredVariables ¶
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 (n NodeJS) RunSync(ctx context.Context, req *node.FlowNodeRequest) node.FlowNodeResult
Click to show internal directories.
Click to hide internal directories.