linkin-linkout

command
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: MIT Imports: 12 Imported by: ? modules, 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

A noderun workflow demonstrating virtual wires — messages that jump across the graph with no edge drawn:

inject → linkOut ──edge──→ debug "Hello direct!"
              ╲ (no edge)
linkIn → change → debug "arrived via link"

Things to notice:

  • linkOut in the default mode: "link" does two things: pushes a clone of the message to every linkIn node in its links list, and passes the original message through its own downstream wiring. Both debug nodes fire here.
  • The linkIn node is the landing point: it has no incoming edges — the engine emits the pushed clone from it, so the clone travels through linkIn's outgoing wiring with msg.linkSource metadata set to the sender's node id.
  • A links entry pointing at a missing or non-linkIn node is silently skipped — dangling links are legal, matching Node-RED.
  • mode: "return" instead answers the pending linkCall that injected the message — the pair for subflow-style call/return flows (a linkCall node type also exists for that pattern).

Run from the noderun module root:

go run ./examples/linkin-linkout

Expected output (ordering may vary):

Hello direct!
arrived via link

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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