linkout

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: MIT Imports: 6 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.

Documentation

Overview

Package linkout contains the linkOut node implementation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LinkOutConfig

type LinkOutConfig struct {
	// Links are the ids of linkIn nodes that receive pushed messages
	Links []string `json:"links"`
	// Mode is "link" (push to linkIn nodes) or "return" (answer a linkCall)
	Mode string `json:"mode"`
}

LinkOutConfig holds configuration for the linkOut node

func (*LinkOutConfig) UnmarshalJSON

func (c *LinkOutConfig) UnmarshalJSON(b []byte) error

UnmarshalJSON accepts links as either an array of strings or a comma-separated string.

type LinkOutNode

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

LinkOutNode pushes messages into linkIn nodes ("link" mode) or answers the pending linkCall that injected the message ("return" mode).

func NewLinkOutNode

func NewLinkOutNode(node nodestore.NodeInterface, config *LinkOutConfig, host nodebase.NodeHost) *LinkOutNode

NewLinkOutNode creates a new linkOut node

func (*LinkOutNode) Execute

Execute pushes the message to every configured linkIn target (mode "link") or resolves the caller at the top of the link call stack (mode "return", consuming the message).

Jump to

Keyboard shortcuts

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