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)
Timeout float64 `json:"timeout"`
}
LinkCallConfig holds configuration for the linkCall node
type LinkCallNode ¶
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 ¶
func (n *LinkCallNode) Execute(ctx context.Context, input nodestore.MessageInterface) (nodestore.MessageInterface, error)
Execute resolves the target linkIn, pushes this node onto the link call stack, injects the message and waits for the linkOut return. The returned payload becomes this node's output.