linkcall

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2026 License: MIT Imports: 8 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Type: linkCall
Category: Flow Control

Calls a Link In component and awaits its Link Out return.

Behavior

This node is registered as linkCall and runs as part of a workflow. Its exact runtime behavior is implemented in node.go; this document summarizes the editor-facing purpose and configuration contract.

Configuration

Field Type Default Description
link string Link — Target linkIn node (static mode)
linkType string static Link Type — static: use the configured link; dynamic: take the target from message metadata "target"
timeout number 30 Timeout (seconds) — How long to await the linkOut return; 0 = 30 seconds

Implementation

  • node.go contains the executor, validation, schema, and registration.
  • editor.html contains the editor integration.
  • node_test.go, when present, contains behavioral tests.

Documentation

Overview

Package linkcall contains the linkCall node implementation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LinkCallConfig

type LinkCallConfig struct {
	// Link is the id of the target linkIn node (linkType "static")
	Link string `json:"link"`
	// LinkType is "static" (configured link) or "dynamic" (target taken
	// from the message's target metadata)
	LinkType string `json:"linkType"`
	// Timeout in seconds to await the linkOut return (default 30).
	// Node-RED serializes this as a string ("30") — flexNumber accepts
	// both spellings.
	Timeout flexNumber `json:"timeout"`
}

LinkCallConfig holds configuration for the linkCall node

type LinkCallNode

type LinkCallNode struct {
	*nodebase.BaseNode
	// contains filtered or unexported fields
}

LinkCallNode injects the message into a target linkIn and awaits the matching linkOut(return), implementing RPC-style request/response.

func NewLinkCallNode

func NewLinkCallNode(node nodestore.NodeInterface, config *LinkCallConfig, host nodebase.NodeHost) *LinkCallNode

NewLinkCallNode creates a new linkCall node

func (*LinkCallNode) Execute

Execute resolves the target linkIn — by id in static mode, by id or unique linkIn name in dynamic mode (Node-RED's linkcallTargets semantics) — injects the message and waits for the linkOut return. The returned payload becomes this node's output.

Jump to

Keyboard shortcuts

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