Documentation
¶
Index ¶
- Constants
- Variables
- func BindUIWidgetSink(host NodeHost, sink UIWidgetSink) (unbind func())
- func ClampQoS(qos int) int
- func CloneMetadata(input nodestore.MessageInterface) map[string]interface{}
- func ClonePayload(p nodestore.MessageInterface) nodestore.MessageInterface
- func CredentialKeys(nodeType string) []string
- func DecodeConfig(node nodestore.NodeInterface, cfg interface{}) error
- func DeletePath(data interface{}, path string)
- func EncodeFilePayload(data interface{}, encoding string) ([]byte, error)
- func ErrorCatchSchemaField() map[string]interface{}
- func EvalSwitchRule(rule SwitchRule, payload nodestore.MessageInterface) bool
- func FileFilename(configured, filenameType string, input nodestore.MessageInterface, ...) (string, error)
- func GenerateID() string
- func GetPath(m map[string]interface{}, path string) (interface{}, bool)
- func IsCredentialKey(nodeType, key string) bool
- func IsCredentialSentinel(v interface{}) bool
- func IsUIWidget(typeID string) bool
- func JSONSource(input nodestore.MessageInterface, property string) (interface{}, bool)
- func LookupProperty(input nodestore.MessageInterface, path string) (interface{}, bool)
- func MQTTConnect(broker, clientID, username, password string) (mqtt.Client, error)
- func MQTTPayloadBytes(input nodestore.MessageInterface) ([]byte, error)
- func MsgPath(field string) (string, bool)
- func MustRegisterNode(reg NodeRegistration)
- func MuxPattern(path string) (string, []string)
- func NewID() string
- func NewMemoryContextStore() *memoryContextStore
- func NextGroupSeq() int64
- func NodeName(node nodestore.NodeInterface) string
- func NodeSchemaFor(typeID string) (map[string]interface{}, bool)
- func ParseCheckpointRoutes(v interface{}) []string
- func ParseFsLocator(locator string) (scheme, dir string, u *url.URL, err error)
- func ParseJSONOrString(s string) interface{}
- func ParseLinkList(v interface{}) []string
- func ParseNumeric(value interface{}) (float64, bool)
- func ParseNumericString(s string) (float64, bool)
- func PushUIState(host NodeHost, workflowID, nodeID string, state map[string]interface{})
- func RangeProperty(input nodestore.MessageInterface, property string) (interface{}, bool)
- func RegisterCredentialKeys(typeID string, keys []string)
- func RegisterNode(reg NodeRegistration) error
- func RegisterNodeType(typeID string, factory NodeFactory) error
- func RegisterUIWidget(typeID string, describer UIWidgetDescriber) error
- func ResolveFilePath(root, name string) (string, error)
- func SetPath(m map[string]interface{}, path string, value interface{})
- func SortedKeys(m map[string]interface{}) []string
- func SplitPath(path string) []string
- func StringOf(v any) string
- func TCPPayloadBytes(input nodestore.MessageInterface) ([]byte, error)
- func ToFloat(value interface{}) (float64, error)
- func UIApplyOverrides(state map[string]interface{}, ui map[string]interface{})
- func UIFormatValue(v interface{}) string
- func UILayoutSchemaFields() map[string]interface{}
- func UINumberSlice(v interface{}) []float64
- func UINumberValue(v interface{}) (float64, bool)
- func UIOverrides(data interface{}) map[string]interface{}
- func UIPayloadValue(data interface{}) interface{}
- func UIWithLayout(extra map[string]interface{}) map[string]interface{}
- func UnescapeDelim(s string) string
- func UnescapeTCP(s string) string
- func UpsertNode(reg NodeRegistration) error
- func WorkflowNodeDisabled(workflow nodestore.WorkflowInterface, node nodestore.NodeInterface) bool
- type Activator
- type BaseNode
- type CheckpointConfig
- type ContextStore
- type Fs
- type FsCredentials
- type FsEntry
- type HTTPRouter
- type LocalFs
- func (LocalFs) AppendFile(name string, data []byte) error
- func (LocalFs) Close() error
- func (LocalFs) Join(dir, name string) string
- func (LocalFs) List(dir string) ([]FsEntry, error)
- func (LocalFs) MkdirAll(dir string) error
- func (LocalFs) ReadFile(name string) ([]byte, error)
- func (LocalFs) Remove(name string) error
- func (LocalFs) Rename(oldName, newName string) error
- func (LocalFs) WriteFile(name string, data []byte) error
- type MQTTClientPool
- type MessageExpander
- type NodeDescriptor
- type NodeEvent
- type NodeExecutor
- type NodeFactory
- type NodeHost
- type NodeRegistration
- type OverflowPolicy
- type PassThroughNode
- type PortRouter
- type QueueConfig
- type QueueContract
- type QueueInspector
- type QueueItem
- type QueueNode
- type QueueService
- type RunEvent
- type RunEventer
- type RunJournalEntry
- type StopKeyer
- type Stopper
- type SwitchRule
- type TCPSessions
- type TLSConfig
- type UIFormField
- type UIWidgetDescriber
- type UIWidgetManifest
- type UIWidgetNode
- type UIWidgetSink
- type WSSessions
- func (s *WSSessions) All() []*websocket.Conn
- func (s *WSSessions) CloseAll()
- func (s *WSSessions) CloseAllWith(code websocket.StatusCode, reason string)
- func (s *WSSessions) DeleteIf(id string, conn *websocket.Conn)
- func (s *WSSessions) Get(id string) (*websocket.Conn, bool)
- func (s *WSSessions) Put(id string, conn *websocket.Conn)
Constants ¶
const ( ContextScopeNode = "node" ContextScopeFlow = "flow" ContextScopeGlobal = "global" )
Context scopes — Node-RED parity. The scope ID namespaces entries within a scope: node scope uses "<workflowID>/<nodeID>", flow scope uses the workflow ID, and the global scope uses "" (shared by every flow).
const CredentialSentinel = nodestore.CredentialSentinel
CredentialSentinel is the marker stored in node.Data in place of a real credential value (the same convention Node-RED's editor uses, "__PWRD__"). Stored workflows and editor payloads carry the sentinel where a secret exists; the actual value lives in server-side credential storage and is merged back into node.Data at deploy time. Exports must strip sentinel values and credential keys entirely.
The canonical registry lives in nodestore so flow documents and the runner share one credential-key set; these are thin aliases.
const DefaultLinkCallTimeout = 30 * time.Second
defaultLinkCallTimeout bounds the wait for a linkOut return when the node configures no explicit timeout.
const LinkCallStackKey = "linkCallStack"
linkCallStackKey is the Metadata key holding the link call stack.
const MQTTClientsKey = "__mqttClients__"
const RunJournalSize = 20
RunJournalSize is the runner-agnostic bound for per-node execution journals: how many recent run records an engine keeps per (workflow, node) for the run-details endpoint.
const TCPSessionsKey = "__tcpSessions__"
const WSSessionsKey = "__websocketSessions__"
Variables ¶
var ReadHeaderTimeout = 10 * time.Second
ReadHeaderTimeout guards against slowloris clients (stalled headers). A package var so tests can shorten it.
Functions ¶
func BindUIWidgetSink ¶
func BindUIWidgetSink(host NodeHost, sink UIWidgetSink) (unbind func())
BindUIWidgetSink registers sink as the dashboard state sink for host — the host-side equivalent of constructing the dashboard hub. It returns an unbind function the caller invokes on hub teardown. One sink per host: a second bind replaces the first.
func CloneMetadata ¶
func CloneMetadata(input nodestore.MessageInterface) map[string]interface{}
cloneMetadata shallow-copies a payload's metadata so the delayed timer's payload doesn't share the (later mutated) map.
func ClonePayload ¶
func ClonePayload(p nodestore.MessageInterface) nodestore.MessageInterface
ClonePayload deep-copies a payload for a fan-out branch: Payload is copied via JSON round-trip (so sibling branches can't share maps), Metadata is shallow-copied preserving the msgId needed by response nodes — shallow deliberately: the JSON round-trip would coerce non-JSON-safe types (int64→float64), and nested-map mutations are the mutating node's job to detach (see sort.emitSequence). A clone is a new message instance: it gets a fresh envelope ID and records the producing instance's ID in metadata.parentMsgId.
func CredentialKeys ¶
CredentialKeys returns the config keys of a node type that are treated as credentials (masked in the editor, stored outside the exported flow document, stripped from exports).
func DecodeConfig ¶
func DecodeConfig(node nodestore.NodeInterface, cfg interface{}) error
DecodeConfig maps the node's stored Data map onto the typed config struct via JSON — the decoding every built-in factory applies.
func DeletePath ¶
func DeletePath(data interface{}, path string)
deletePath removes the value at the dotted path inside data
func EncodeFilePayload ¶
encodeFilePayload converts message data into bytes per encoding: strings/[]byte pass through, other values are JSON-marshalled; base64/hex decode a string payload first. Shared by the file and fsOut nodes.
func ErrorCatchSchemaField ¶
func ErrorCatchSchemaField() map[string]interface{}
errorCatchSchemaField returns the shared "errorCatch" schema field for the external-facing built-ins that support the opt-in error output port (task error_catch_port): when enabled the node gains a dedicated "error" port after its normal outputs; a node failure emits msg.error={text,node,full} on it when wired, else falls through to the catch/problem-queue ladder.
func EvalSwitchRule ¶
func EvalSwitchRule(rule SwitchRule, payload nodestore.MessageInterface) bool
evalSwitchRule evaluates a single rule against the payload's data.
func FileFilename ¶
func FileFilename(configured, filenameType string, input nodestore.MessageInterface, host NodeHost) (string, error)
fileFilename resolves the node's target filename. With filenameType "msg" the name comes from msg.Payload["filename"] or msg.Metadata["filename"] (via lookupProperty); otherwise the fixed configured filename is used. The host FileRoot restriction applies.
func GenerateID ¶
func GenerateID() string
GenerateID returns a fresh unique ID (UUIDv7 — time-ordered, so persisted rows sort by creation).
func IsCredentialKey ¶
IsCredentialKey reports whether key is a credential field on the given node type.
func IsCredentialSentinel ¶
func IsCredentialSentinel(v interface{}) bool
IsCredentialSentinel reports whether v is the sentinel string left in place of a stored credential value.
func IsUIWidget ¶
IsUIWidget reports whether typeID is a registered dashboard widget node type. The editor/API uses it to group widget types in the palette (convention: NodeType.Category "Dashboard", ui* naming).
func JSONSource ¶
func JSONSource(input nodestore.MessageInterface, property string) (interface{}, bool)
jsonSource resolves the value to convert. When property is "payload" (or empty) the whole Data is used; otherwise the dotted path is read inside the data map. Returns the value plus whether it lives on Data.
func LookupProperty ¶
func LookupProperty(input nodestore.MessageInterface, path string) (interface{}, bool)
lookupProperty resolves a simple property path against the payload: "payload" → Data; otherwise checks Metadata[key] first, then a dotted path inside a map-typed Data.
func MQTTConnect ¶
MQTTConnect builds a paho client for the given broker (host:port is normalized to tcp://host:port) and connects, surfacing broker unavailability as an error.
func MQTTPayloadBytes ¶
func MQTTPayloadBytes(input nodestore.MessageInterface) ([]byte, error)
MQTTPayloadBytes converts message Data into publish bytes: strings and []byte pass through, anything else is JSON-marshaled.
func MsgPath ¶
msgPath strips the "msg." prefix that targets message-level properties (Metadata), e.g. "msg.statusCode" -> "statusCode".
func MustRegisterNode ¶
func MustRegisterNode(reg NodeRegistration)
MustRegisterNode is RegisterNode for built-in registration: a duplicate typeID is a programming error and panics.
func MuxPattern ¶
MuxPattern converts a Node-RED-style path with ":name" segments into a Go 1.22 ServeMux pattern with "{name}" wildcards, returning the pattern and the parameter names in order.
func NewMemoryContextStore ¶
func NewMemoryContextStore() *memoryContextStore
NewMemoryContextStore creates an empty in-memory context store.
func NextGroupSeq ¶
func NextGroupSeq() int64
NextGroupSeq returns the next group sequence number — unique ids for split-family operations (split, csv) that fan one message out into a numbered group.
func NodeName ¶
func NodeName(node nodestore.NodeInterface) string
NodeName returns the display name of a workflow node.
func NodeSchemaFor ¶
NodeSchemaFor returns the JSON schema registered for typeID, if any.
func ParseCheckpointRoutes ¶
func ParseCheckpointRoutes(v interface{}) []string
ParseCheckpointRoutes normalizes the loose `routes` config value into an ordered label list. Entries may be blank (the port falls back to its "output_N" key as the label).
func ParseFsLocator ¶
ParseFsLocator splits a locator into (scheme, dir). A plain path or a file:// URI is local. sftp://[user[:pass]@]host[:port]/path and ftp://… select remote adapters. s3:// and unknown schemes error. Returned dir uses the backend's native separator.
func ParseJSONOrString ¶
func ParseJSONOrString(s string) interface{}
parseJSONOrString returns the decoded JSON value when s parses as JSON, otherwise s itself
func ParseLinkList ¶
func ParseLinkList(v interface{}) []string
ParseLinkList accepts links configured either as a JSON array of node ids or as a comma-separated string (the editor's textarea first pass).
func ParseNumeric ¶
ParseNumeric coerces a value to a number with JS Number() semantics. Strings are trimmed (whitespace + BOM) and honour 0x/0o/0b radix prefixes before delegating to cast; everything else defers to cast.ToFloat64E. The second return value is false when the value cannot be coerced (NaN).
func ParseNumericString ¶
ParseNumericString parses a string like JS Number(): trims whitespace and a leading BOM, honours 0x/0o/0b radix prefixes, otherwise defers to standard float parsing.
func PushUIState ¶
PushUIState delivers a widget state update to the dashboard sink bound to host. It is a no-op when the host has no bound sink (no dashboard mounted) or the workflow has no dashboard scope.
func RangeProperty ¶
func RangeProperty(input nodestore.MessageInterface, property string) (interface{}, bool)
rangeProperty extracts the watched value: "payload" returns the whole Data, other paths read a dotted path inside the data map.
func RegisterCredentialKeys ¶
RegisterCredentialKeys marks config keys of a node type as credentials — the same treatment built-in types get: the editor masks them, storage moves them out of the flow document behind the CredentialSentinel marker, and exports strip them. Node packs call this alongside RegisterNodeType (typically from init()). Re-calling replaces the key list for the type.
func RegisterNode ¶
func RegisterNode(reg NodeRegistration) error
RegisterNode adds reg to the global node registry — the path both built-ins and node packs take, so every host can deploy the type and editors can show it in the palette. Registering an already-registered typeID is an error (use UpsertNode to deliberately replace).
func RegisterNodeType ¶
func RegisterNodeType(typeID string, factory NodeFactory) error
RegisterNodeType registers factory under typeID in the global node type registry — the minimal pack path equivalent to RegisterNode with an empty descriptor. Registering an already-registered typeID is an error.
func RegisterUIWidget ¶
func RegisterUIWidget(typeID string, describer UIWidgetDescriber) error
RegisterUIWidget registers describer under typeID in the global dashboard widget registry. Re-registering replaces the previous describer. Returns an error for empty typeID/nil describer.
func ResolveFilePath ¶
resolveFilePath applies the host's FileRoot sandbox. When FileRoot is empty the path passes through unchanged (unrestricted — document at deploy time by the consuming application). When set, the cleaned absolute path must stay under the root; ".." escapes are rejected.
func SortedKeys ¶
sortedKeys returns the map keys in deterministic (sorted) order
func TCPPayloadBytes ¶
func TCPPayloadBytes(input nodestore.MessageInterface) ([]byte, error)
TCPPayloadBytes converts the message Data into bytes to send: strings pass through, []byte as-is, anything else as JSON with a trailing newline.
func UIApplyOverrides ¶
UIApplyOverrides merges the Data["ui"] override map into state — only keys the state already carries may be overridden, so a message cannot invent arbitrary render directives.
func UIFormatValue ¶
func UIFormatValue(v interface{}) string
UIFormatValue renders a display value as text: strings pass through, numbers print compactly, anything else is JSON-encoded.
func UILayoutSchemaFields ¶
func UILayoutSchemaFields() map[string]interface{}
UILayoutSchemaFields returns the shared widget layout properties — plain string/number fields matching the convention the dashboard manifest reads (page/group/label/order; no config nodes).
func UINumberSlice ¶
func UINumberSlice(v interface{}) []float64
UINumberSlice coerces a display value to a float slice — arrays element-wise (non-numeric entries dropped), a scalar to a single-element slice.
func UINumberValue ¶
UINumberValue coerces a display value to float64 — numbers pass through, numeric strings parse, anything else reports ok=false.
func UIOverrides ¶
func UIOverrides(data interface{}) map[string]interface{}
UIOverrides returns the optional per-message override map carried in Data["ui"] (merged over computed widget state by the executor).
func UIPayloadValue ¶
func UIPayloadValue(data interface{}) interface{}
UIPayloadValue extracts the display value from message Data: Data["payload"] wins when Data is a map carrying the key (the inject/client-input convention); otherwise Data itself is the value.
func UIWithLayout ¶
UIWithLayout returns a schema properties map = layout fields + extra type-specific fields.
func UnescapeDelim ¶
unescapeDelim converts literal escape sequences ("\n", "\t", "\r", "\0", "\\") stored in the config into real characters
func UnescapeTCP ¶
UnescapeTCP decodes the common escape sequences config fields accept (same convention as the split node's delimiter).
func UpsertNode ¶
func UpsertNode(reg NodeRegistration) error
UpsertNode registers or replaces a registration — the compatibility path for metadata-only palette entries which historically replaced existing entries.
func WorkflowNodeDisabled ¶
func WorkflowNodeDisabled(workflow nodestore.WorkflowInterface, node nodestore.NodeInterface) bool
WorkflowNodeDisabled reports whether node is inert for a deploy — the runner-agnostic disabled predicate so optional packages (the dashboard hub) that collect node subsets of a deployed workflow honor the same semantics the engine applies.
A node is disabled when its own "d"/"disabled" data flag is set (Node-RED parity), when its module (data.module — an id under the id-keyed model, a name in legacy documents) is listed in workflow.GetView()["disabledModules"] or flagged enabled:false in workflow.GetView()["modules"], or when a view group containing it (workflow.GetView()["groups"] entry with disabled:true) is disabled. noderunner's deploy-time predicate delegates here so the semantics stay single-sourced in the nodebase.
Types ¶
type Activator ¶
Activator is an optional companion to Stopper. When implemented, the deploy-time activation pass calls Activate instead of Execute, so nodes that ALSO receive wired messages (e.g. queue) can tell the activation call apart from a message delivery.
type BaseNode ¶
type BaseNode struct {
nodestore.NodeInterface
}
BaseNode provides the shared executor behavior every node type builds on. It carries no identity of its own: it wraps the nodestore.NodeInterface entity, so the node's id, type, position and config Data live in exactly one place — the executor is a behavior shell over the entity, not a shadow copy of it.
func NewBaseNode ¶
func NewBaseNode(node nodestore.NodeInterface) *BaseNode
NewBaseNode creates a new BaseNode wrapping node.
func (*BaseNode) Execute ¶
func (n *BaseNode) Execute(ctx context.Context, input nodestore.MessageInterface) (nodestore.MessageInterface, error)
Execute is a default implementation that can be overridden by specific nodes
type CheckpointConfig ¶
type CheckpointConfig struct {
QueueConfig
// Routes is the ordered list of route labels; routes[i] labels
// output_{i+1}. Accepts a JSON array or a comma-separated string.
Routes interface{} `json:"routes"`
}
CheckpointConfig holds the node.GetData() fields of a checkpoint node: the queue's capacity/policy/backend/dir fields plus the ordered route labels. There is no `hold` — a checkpoint is always held.
type ContextStore ¶
type ContextStore interface {
// GetContext returns the value stored under key in the given
// scope; ok is false when the key has never been set.
GetContext(scope, scopeID, key string) (value interface{}, ok bool, err error)
// SetContext stores value under key in the given scope.
SetContext(scope, scopeID, key string, value interface{}) error
// DeleteContext removes a single key (no error when absent).
DeleteContext(scope, scopeID, key string) error
// DeleteContextScope removes every key in the scope
// (e.g. when a workflow is deleted).
DeleteContextScope(scope, scopeID string) error
// ContextKeys lists the keys stored in the scope (Node-RED
// context.keys() / flow.keys() parity).
ContextKeys(scope, scopeID string) ([]string, error)
}
ContextStore is the persistence contract behind the function node's context API (context.get/set = node scope, flow.get/set, global.get/set). It lives in flowrunner — like DurableInboxStore and LeaseStore — because the import direction is flowadmin/storage -> flowrunner. Implementations must tolerate values that are arbitrary goja exports (map[string]interface{}, []interface{}, float64, string, bool, nil); disk-backed stores serialize them as JSON.
type Fs ¶
type Fs interface {
// Join joins a directory and a base name using the backend's
// path convention (OS separator locally, "/" remotely).
Join(dir, name string) string
// MkdirAll creates dir and any missing parents.
MkdirAll(dir string) error
// List returns the direct children of dir.
List(dir string) ([]FsEntry, error)
// ReadFile reads the whole file.
ReadFile(name string) ([]byte, error)
// WriteFile writes data to name, creating or truncating.
WriteFile(name string, data []byte) error
// AppendFile appends data to name, creating it if needed.
AppendFile(name string, data []byte) error
// Rename moves old to new. Atomic on local and sftp; NOT atomic
// on ftp (documented — never yields a partial final file).
Rename(oldName, newName string) error
// Remove deletes a file. A missing file is not an error.
Remove(name string) error
// Close releases any connection. Local is a no-op.
Close() error
}
Fs is the filesystem seam: the minimal surface DirQueueStore and the fsIn/fsOut nodes need.
func OpenFs ¶
func OpenFs(locator string, creds *FsCredentials) (Fs, string, error)
OpenFs resolves a locator to a connected Fs plus the directory the locator pointed at. Remote locators are dialed once here so config errors surface at deploy; the returned Fs transparently re-dials if the connection later drops (see redialFs). creds may be nil. The caller owns the Fs and should Close it when done.
type FsCredentials ¶
type FsCredentials struct {
// Password authenticates password login (credential field).
Password string
// KeyFile is a LOCAL path to an SSH private key (sftp only). An
// optional passphrase rides in Password.
KeyFile string
// HostKey pins the expected SSH host public key — authorized_keys
// line or base64 wire format. ftp ignores it.
HostKey string
// AcceptAnyHostKey disables SSH host-key verification when
// HostKey is empty (INSECURE — explicit opt-out required; sftp
// otherwise refuses to connect without a pinned key).
AcceptAnyHostKey bool
}
FsCredentials carries the secret/auth material for remote locators. Password is credential-typed on every node schema; host keys are public information and travel as plain config.
func FsCredentialsFromData ¶
func FsCredentialsFromData(data map[string]interface{}) *FsCredentials
FsCredentialsFromData extracts the credential/config keys shared by the queue dir backend and the fsIn/fsOut nodes.
type HTTPRouter ¶
type HTTPRouter interface {
// Handle mounts handler for pattern. A conflict with an already
// mounted route is returned as an error, never panicked.
Handle(pattern string, handler http.Handler) error
// Unregister removes the route mounted for pattern (a no-op when
// the pattern was never mounted).
Unregister(pattern string)
}
HTTPRouter is the host's shared-listener seam: an optional router the host installs (same optional-field contract as HTTPAuthenticator, ContextStore or DeployObserver) so HTTP-serving nodes can mount routes on the host's own HTTP server instead of binding a private TCP listener — the Node-RED model where an http-in node just names a path and serves it on the admin port. Nil — the default — means no shared router exists; a node configured for shared-listener mode then fails activation with an explicit error rather than silently falling back to a private listener (the caller asked for the host's auth/TLS surface; serving the route unauthenticated on another port would surprise).
Patterns are Go 1.22 ServeMux patterns (e.g. "GET /hello", "POST /submit/{job}"). Handle must report a route conflict as an error — the host surfaces it as a deploy failure on the second registrant. Unregister removes a previously mounted pattern and must tolerate patterns that were never mounted (Stop is idempotent).
Routes mounted here serve inside whatever middleware the host applies — for the flowadmin adapter that means admin auth when an auth file is configured. There is no per-route opt-out in v1.
type LocalFs ¶
type LocalFs struct{}
LocalFs wraps the native os package — the pre-task DirQueueStore behaviour, byte for byte.
type MQTTClientPool ¶
type MQTTClientPool struct {
// contains filtered or unexported fields
}
MQTTClientPool is the workflow-level registry of shared broker connections keyed by broker address, so mqttIn/mqttOut nodes against the same broker share one TCP connection. Stored in host node state under MQTTClientsKey — rebuilt per workflow run.
func NewMQTTClientPool ¶
func NewMQTTClientPool() *MQTTClientPool
NewMQTTClientPool returns an empty pool (the value stored under MQTTClientsKey in host node state).
func (*MQTTClientPool) Client ¶
func (p *MQTTClientPool) Client(broker, clientID, username, password string) (mqtt.Client, error)
client returns a connected client for broker, connecting and caching it on first use. The pool key includes the username so nodes against the same broker with different credentials get separate connections.
type MessageExpander ¶
type MessageExpander interface {
// Expand returns the messages that replace the node's single output.
// An empty result means no message continues downstream.
Expand(output nodestore.MessageInterface) []nodestore.MessageInterface
}
MessageExpander is implemented by nodes that turn a single output message into a sequence of messages (e.g. the split node). After the node executes, each returned payload is enqueued separately on the node's selected outgoing edges — routing via PortRouter still applies.
type NodeDescriptor ¶
type NodeDescriptor struct {
Type string `json:"type"`
Name string `json:"name"`
Description string `json:"description"`
Icon string `json:"icon"`
Category string `json:"category"`
Set string `json:"set,omitempty"`
Schema map[string]interface{} `json:"schema,omitempty"`
EditorHTML string `json:"editorHtml,omitempty"`
}
NodeDescriptor is the editor-facing metadata a registration carries: what the palette shows for the type. Schema is the JSON schema served to editors — including the editor extensions "format":"credential" and "showIf". Set groups registrations Node-RED nodeSet-style ("core" for built-ins, the pack name for third-party) so the palette can group and a future enable/disable can operate per set. EditorHTML optionally carries the node's Node-RED-style editor bundle (config dialog markup + help text); the built-in folders embed theirs from editor.html.
type NodeEvent ¶
type NodeEvent struct {
Seq int64 `json:"seq"`
Time time.Time `json:"time"`
NodeID string `json:"node_id,omitempty"`
NodeName string `json:"node_name,omitempty"`
Level string `json:"level"` // info | warn | error | debug
Message string `json:"message"`
}
NodeEvent is a single timestamped entry in a workflow's execution log. Events feed the editor's debug panel and per-node status indicators; the workflow-status endpoint returns the ones recorded since a caller-supplied sequence number.
type NodeExecutor ¶
type NodeExecutor interface {
// ID returns the unique identifier for the node.
ID() string
// Type returns the type of the node.
Type() string
// Execute performs the node's operation.
Execute(ctx context.Context, input nodestore.MessageInterface) (nodestore.MessageInterface, error)
// Validate checks if the node is properly configured.
Validate() error
}
NodeExecutor defines the interface that all nodes must implement.
type NodeFactory ¶
type NodeFactory func(node nodestore.NodeInterface, host NodeHost) (NodeExecutor, error)
NodeFactory builds a NodeExecutor for one workflow node instance. It is the stable public contract for node registration. The signature is frozen.
node carries the stored definition (ID, Type, WorkflowID, Data config map); host is the runtime seam the node executes against — the runner passes itself in, so long-lived nodes can emit messages, consult LookupNode, or use host services (context store, HTTP router, TLS config, queue service) without ever holding a concrete host type.
type NodeHost ¶
type NodeHost interface {
// Emit routes payload out of nodeID's outgoing edges (all of them
// when ports is nil) inside the running workflow.
Emit(workflowID, nodeID string, payload nodestore.MessageInterface, ports []string) error
// EmitEvent appends a timestamped log entry (info|warn|error|debug)
// for the node — feeds the editor's debug panel and status badges.
EmitEvent(workflowID, nodeID, nodeName, level, message string)
// InjectMessage routes an externally-originated payload (e.g. an
// HTTP trigger request) through the nodes downstream of fromNodeID.
// It returns a message ID whose response can be awaited via
// ResolveResponse — used by response-style nodes to reply to the
// original request.
InjectMessage(workflowID, fromNodeID string, payload nodestore.MessageInterface) (string, chan nodestore.MessageInterface, error)
// ResolveResponse delivers payload to the party awaiting the
// response channel returned by InjectMessage.
ResolveResponse(msgID string, payload nodestore.MessageInterface) error
// DiscardPending drops the response correlation registered under
// msgID (response node fired with nothing waiting, or a timeout).
DiscardPending(msgID string)
// LookupNode returns the stored definition of nodeID within the
// running workflow — used for link targets and config-node
// references (e.g. tlsConfig).
LookupNode(workflowID, nodeID string) (nodestore.NodeInterface, bool)
// RunningFlow returns the expanded in-memory workflow definition
// the run is executing. ok is false when the workflow is not
// running on this host.
RunningFlow(workflowID string) (nodestore.WorkflowInterface, bool)
// RunContext returns the per-run context cancelled when the
// workflow stops — long-lived nodes select on it so in-flight
// work stops promptly on undeploy.
RunContext(workflowID string) context.Context
// GetOrCreateNodeState returns the per-run state slot for
// (workflowID, nodeID), calling factory to create it on first use.
// Executors are rebuilt per message, so stateful nodes keep their
// buffers here.
GetOrCreateNodeState(workflowID, nodeID string, factory func() interface{}) interface{}
// ExecuteDownstream continues the traversal downstream of
// fromNodeID on a separate path — for nodes that emit outside the
// synchronous Execute return (e.g. linkCall's deferred fan-out).
ExecuteDownstream(ctx context.Context, workflowID, fromNodeID string, workflow nodestore.WorkflowInterface, payload nodestore.MessageInterface, ports []string)
// NodeEnv resolves an environment variable in node scope
// (Node-RED env.get: group/subflow/flow layers, then global env,
// then the OS environment).
NodeEnv(workflowID, nodeID, name string) (interface{}, bool)
// ResolvedContextStore returns the store backing function-node
// context (node/flow/global scopes): the host's configured store,
// or a process-local in-memory one when none is wired.
ResolvedContextStore() ContextStore
// LoadTLSConfig resolves a tlsConfig node reference (node id
// within the workflow) into a ready *tls.Config for a client
// dial.
LoadTLSConfig(workflowID, ref string) (*tls.Config, error)
// FileRootPath returns the root directory file nodes are
// restricted to. Empty means unrestricted.
FileRootPath() string
// ExecAllowed reports whether the exec node may run arbitrary
// system commands on this host.
ExecAllowed() bool
// optional router HTTP-serving nodes mount routes on instead of
// binding a private TCP listener (the Node-RED model where an
// http-in node names a path served on the host's own port).
// Nil means no shared router exists.
SharedHTTPRouter() HTTPRouter
// HTTPAuthFunc authenticates requests arriving at node-served
// HTTP listeners (submitIn auth "admin"), returning the
// authenticated username. Nil means no credentials are
// configured.
HTTPAuthFunc() func(r *http.Request) (username string, ok bool)
// QueueService returns the host's staging-queue service backing
// the queue and checkpoint nodes. Nil means the host offers no
// queue service; queue-family nodes then fail activation with an
// explicit error.
QueueService() QueueService
}
NodeHost is the runtime seam between an executor and the runner that hosts it. It is the ONLY thing an executor sees of its host: every built-in node is written against NodeHost, never against a concrete host type, so any runner implementing NodeHost can host this pack and any pack written against NodeHost runs on any such runner.
The surface covers the four things executors legitimately need — emission back into the graph (Emit, InjectMessage, DeliverSync-style helpers), run state (node state slots, running flow, run context), host services (HTTP router/authenticator, TLS config resolution, context store, file root, exec gate, env lookup) and lifecycle correlation (pending responses, queue service).
type NodeRegistration ¶
type NodeRegistration struct {
Descriptor NodeDescriptor
Factory NodeFactory // nil for palette-only registrations
}
NodeRegistration bundles a type's factory with its editor descriptor — the single registration unit for both the runtime (deploy) and the palette (nodeadmin).
func RegisteredNode ¶
func RegisteredNode(typeID string) (NodeRegistration, bool)
RegisteredNode returns the registration for typeID, if any.
func RegisteredNodes ¶
func RegisteredNodes() []NodeRegistration
RegisteredNodes returns a snapshot of every globally registered node type, sorted by type id — what editors serve through /api/node-fetch-all.
type OverflowPolicy ¶
type OverflowPolicy string
OverflowPolicy selects what happens when a message is offered to a node inbox that has reached its configured capacity.
const ( // OverflowBlock parks the message until the node's pending count // drops below capacity. OverflowBlock OverflowPolicy = "block" // OverflowDropNewest discards the incoming message. OverflowDropNewest OverflowPolicy = "drop-newest" // OverflowDropOldest evicts the node's oldest queued message to // make room for the incoming one. OverflowDropOldest OverflowPolicy = "drop-oldest" // OverflowRouteToCatch discards the incoming message and reports it // to in-scope catch nodes as an error event. OverflowRouteToCatch OverflowPolicy = "route-to-catch" )
func ParseOverflowPolicy ¶
func ParseOverflowPolicy(value interface{}) (OverflowPolicy, bool)
ParseOverflowPolicy normalizes a config value into an OverflowPolicy.
type PassThroughNode ¶
type PassThroughNode struct {
*BaseNode
}
PassThroughNode is the executor for node types without payload logic (junction, event sources, legacy internal types).
func NewPassThroughNode ¶
func NewPassThroughNode(node nodestore.NodeInterface) *PassThroughNode
NewPassThroughNode creates the pass-through executor for node.
func (*PassThroughNode) Execute ¶
func (n *PassThroughNode) Execute(ctx context.Context, input nodestore.MessageInterface) (nodestore.MessageInterface, error)
Execute returns the input unchanged.
type PortRouter ¶
type PortRouter interface {
// SelectPorts returns the output port keys (e.g. "output_1") that
// the produced message should be routed to. An empty result means
// the message dies at this node (Node-RED switch behaviour).
SelectPorts(input, output nodestore.MessageInterface) []string
}
PortRouter is implemented by nodes that route their output to specific ports (e.g. the switch node). After such a node executes, only edges whose SourceKey is in the returned set are followed; other wired branches receive no message.
type QueueConfig ¶
type QueueConfig struct {
// Capacity is the max queued items (<=0 unbounded). Alias for
// inboxCapacity. Kept interface{} so a loosely-typed editor value
// cannot fail the config decode — the authoritative parse is the
// host's queue-config resolution.
Capacity interface{} `json:"capacity"`
// Policy is the overflow policy: block | drop-newest | drop-oldest |
// route-to-catch. Alias for inboxPolicy. interface{} for the same
// loose-typing reason as Capacity.
Policy interface{} `json:"policy"`
// Hold starts the queue held: deliveries enqueue but nothing
// drains. interface{} — truthy parsing accepts bools, strings and
// numbers.
Hold interface{} `json:"hold"`
// Backend selects where items are persisted: "durable" (default,
// the host's durable inbox store — multi-runner) or "dir" (one
// file per item under Dir — materialized for OS tooling).
Backend interface{} `json:"backend"`
// Dir is the target directory for backend="dir". A local path (or
// NFS/SMB/SSHFS mount) uses the local adapter; an sftp:// or
// ftp:// locator stores item files on the remote directory
// through the Fs seam — remote backends are POLLING.
Dir string `json:"dir"`
// Password authenticates remote locators (credential field —
// masked, stored outside the exported flow document).
Password string `json:"password"`
// KeyFile is a local path to an SSH private key for sftp locators
// (Password doubles as the key passphrase).
KeyFile string `json:"keyFile"`
// HostKey pins the expected sftp host public key (authorized_keys
// or base64 form); empty accepts any key (insecure, logged).
HostKey string `json:"hostKey"`
}
QueueConfig holds the node.GetData() fields of a queue node.
type QueueContract ¶
type QueueContract interface {
// Arm starts the drainer once and recovers surviving durable
// rows. Idempotent — the deploy-time activation path calls it.
Arm(ctx context.Context)
// Enqueue stages a delivered payload under the queue's capacity
// and overflow policy.
Enqueue(p nodestore.MessageInterface) error
// Stop shuts the drainer down (idempotent) and releases the
// queue's resources.
Stop()
}
QueueContract is the executor-facing surface of a host staging queue: the queue/checkpoint shells stage and drain through it; the inspection API (item listing, hold, per-item release) is a host-internal concern and intentionally not part of this contract.
type QueueInspector ¶
type QueueInspector interface {
// Items returns the queued entries in FIFO order.
Items() []QueueItem
// Count reports the queued depth (excluding any waitlist).
Count() int
// Held reports whether the queue is held (accepting, not draining).
Held() bool
// SetHold toggles the hold gate at runtime.
SetHold(hold bool)
// Enqueue stages a payload under the queue's capacity/policy.
Enqueue(p nodestore.MessageInterface) error
// DeleteItem drops the queued item with the given seq.
DeleteItem(seq int64) error
// RequeueItem releases one queued item downstream on all edges.
RequeueItem(seq int64) error
// ReleaseItem releases one queued item; route picks the outgoing
// edge for checkpoint queues (empty = all edges), approvedBy is
// recorded in the released payload's checkpoint metadata.
ReleaseItem(seq int64, route string, approvedBy string) error
// RouteLabels returns the checkpoint's named release routes in
// port order; plain queues report nil.
RouteLabels() []string
}
QueueInspector is the read/control surface a runner exposes for a queue node's live staging queue: depth and item listing, the hold/release gate, and per-item delete/requeue (the same endpoint serves checkpoint route releases via ReleaseItem's route parameter).
type QueueItem ¶
type QueueItem struct {
Seq int64 `json:"seq"`
EnqueuedAt time.Time `json:"enqueued_at"`
Payload nodestore.MessageInterface `json:"-"`
}
QueueItem is one queued entry as exposed to the inspection API.
type QueueNode ¶
type QueueNode struct {
*BaseNode
// contains filtered or unexported fields
}
QueueNode is the executor shell for the queue (and checkpoint) node types. It is a Stopper + Activator: activation (deploy) arms the shared drainer; message-time Execute stages the payload into the queue.
func NewCheckpointNode ¶
func NewCheckpointNode(node nodestore.NodeInterface, config *CheckpointConfig, host NodeHost) *QueueNode
NewCheckpointNode creates the executor shell for a checkpoint node. It reuses QueueNode wholesale — the difference lives on the shared queue (manual + routes).
func NewQueueNode ¶
func NewQueueNode(node nodestore.NodeInterface, config *QueueConfig, host NodeHost) *QueueNode
NewQueueNode creates a new queue node executor shell.
func (*QueueNode) Activate ¶
Activate implements Activator: the deploy-time call arms the shared drainer and recovers surviving durable rows. It never stages the activation payload. The initial hold state was already resolved into the queue at creation (node.GetData()["hold"]).
func (*QueueNode) Execute ¶
func (n *QueueNode) Execute(ctx context.Context, input nodestore.MessageInterface) (nodestore.MessageInterface, error)
Execute stages the delivered payload into the queue. Output is nil — the message was staged, not passed through; the drainer emits it downstream later under the hold/release gate.
func (*QueueNode) Stop ¶
Stop implements Stopper: shuts down the shared drainer. Must not recreate host state — it may already be wiped, in which case the cached queue is the only reference to the live drainer.
type QueueService ¶
type QueueService interface {
// EnsureQueue returns the shared staging queue behind node,
// creating it on first use. checkpoint marks the queue manual
// (never drains on its own — items leave only via route releases)
// and routes carries the checkpoint's named release choices in
// port order.
EnsureQueue(node nodestore.NodeInterface, checkpoint bool, routes []string) (QueueContract, error)
// HasDurableStore reports whether a durable inbox store is wired.
// The queue node's default "durable" backend requires it; dir
// backends do not.
HasDurableStore() bool
}
QueueService is the host's staging-queue service — a structural capability NodeHost exposes so the queue and checkpoint executors can stage, hold and release messages without knowing the concrete queue implementation (durable table, directory backend, …).
type RunEvent ¶
RunEvent is an extra event an executor may emit after a successful run (e.g. the debug node's formatted payload, the log node's configured message). The runner appends each returned event under the node that produced it.
type RunEventer ¶
type RunEventer interface {
// PostRunEvents returns the events to append after a successful
// run. The implementation may also produce side effects (e.g. the
// debug node's console print).
PostRunEvents(node nodestore.NodeInterface, out nodestore.MessageInterface) []RunEvent
}
RunEventer is implemented by executors that emit extra events after a successful Execute. The runner emits each returned event under the node that produced it.
type RunJournalEntry ¶
type RunJournalEntry struct {
Seq int64 `json:"seq"`
Time time.Time `json:"time"`
DurationMs float64 `json:"duration_ms"`
Input interface{} `json:"input"`
Output interface{} `json:"output"`
Error string `json:"error,omitempty"`
}
RunJournalEntry records one node execution: when it ran, how long it took, a summarized credential-safe copy of the input and output payloads, and the error text when the node failed.
type StopKeyer ¶
type StopKeyer interface {
// StopKey returns the deduplication key for stopper registration.
StopKey() string
}
StopKeyer lets a Stopper dedupe itself in the runner's per-run stopper registry: nodes whose executors are rebuilt per message but share one underlying resource (e.g. the queue drainer) return a stable key so only the first instance is registered.
type Stopper ¶
type Stopper interface {
Stop() error
}
Stopper is implemented by nodes that hold long-lived resources (e.g. an HTTP trigger's listener) which must be shut down when the workflow stops or restarts.
type SwitchRule ¶
type SwitchRule struct {
Property string `json:"property"`
Op string `json:"op"` // eq | neq | gt | lt | lte | gte | contains | empty | regex | istype
Value string `json:"value"`
}
SwitchRule is a single ordered rule evaluated against the incoming payload. Property is a dotted path into msg.Payload (e.g. "path" or "body.user.role"). Rule index i maps to output port "output_{i+1}".
type TCPSessions ¶
type TCPSessions struct {
// contains filtered or unexported fields
}
tcpSessions is the workflow-level registry of accepted TCP connections, keyed by remote "ip:port". It lives in the host's node-state map under a reserved key so tcpOut can reply on the connection that produced a message (Node-RED _session semantics).
func NewTCPSessions ¶
func NewTCPSessions() *TCPSessions
NewTCPSessions returns an empty session registry (the value stored under TCPSessionsKey in host node state).
func (*TCPSessions) CloseAll ¶
func (s *TCPSessions) CloseAll()
CloseAll closes and removes every registered connection.
func (*TCPSessions) DeleteIf ¶
func (s *TCPSessions) DeleteIf(key string, conn net.Conn)
DeleteIf removes key only when it still maps to conn.
type TLSConfig ¶
type TLSConfig struct {
// CertPath is the client/server certificate file (PEM).
CertPath string `json:"cert"`
// KeyPath is the private key file paired with CertPath (PEM).
KeyPath string `json:"key"`
// CAPath is an optional CA bundle used to verify the peer (PEM).
CAPath string `json:"ca"`
// ServerName overrides the SNI / verification hostname
// (default: the dialed host).
ServerName string `json:"servername"`
// VerifyServerCert disables peer verification when false
// (Node-RED field name: verifyservercert).
VerifyServerCert bool `json:"verifyservercert"`
}
TLSConfig holds configuration for the tlsConfig node — the Node-RED `tls-config` config node equivalent. It is a shared config entity: tcp nodes reference it by node id via their "tls" field, and the host materializes a *tls.Config from its stored paths at message time (NodeHost.LoadTLSConfig). It has no ports and never executes.
type UIFormField ¶
type UIFormField struct {
// Name is the msg.payload object key (required — nameless
// entries are dropped by the describer).
Name string `json:"name"`
// Label is the control caption; falls back to Name.
Label string `json:"label,omitempty"`
// Type is text (default) | number | checkbox | select.
Type string `json:"type"`
// Options lists the select choices (select only).
Options []string `json:"options,omitempty"`
// Value is the initial/default control value.
Value interface{} `json:"value,omitempty"`
}
UIFormField is one normalized form field in the uiForm manifest config; the client renderer generates a control per entry.
func UIFormFields ¶
func UIFormFields(data map[string]interface{}) []UIFormField
UIFormFields normalizes node data["fields"] into a typed slice — shared by the manifest describer and kept tolerant of hand-edited node JSON.
type UIWidgetDescriber ¶
type UIWidgetDescriber func(node nodestore.NodeInterface) UIWidgetManifest
UIWidgetDescriber extracts a widget's manifest entry from its stored node definition. Registered per node type via RegisterUIWidget — the "small internal interface" widget node types implement so the hub stays type-agnostic.
Implementations read layout fields through UIWidgetLayout and add type-specific keys to Config.
type UIWidgetManifest ¶
type UIWidgetManifest struct {
ID string `json:"id"`
Type string `json:"type"`
Page string `json:"page"`
Group string `json:"group,omitempty"`
Label string `json:"label,omitempty"`
Order int `json:"order,omitempty"`
Config map[string]interface{} `json:"config,omitempty"`
}
UIWidgetManifest is the manifest entry for one dashboard widget node instance: everything the dashboard page needs to render it.
Page/Group/Label/Order come from the node's layout fields (see UIWidgetLayout); Config carries type-specific settings the widget's client-side renderer understands (e.g. min/max for a gauge).
func CollectUIWidgets ¶
func CollectUIWidgets(workflow nodestore.WorkflowInterface) []UIWidgetManifest
CollectUIWidgets builds the manifest for a deployed workflow: every enabled node whose type has a registered describer, sorted by page → group → order → id for a stable render order.
func UIWidgetLayout ¶
func UIWidgetLayout(node nodestore.NodeInterface) UIWidgetManifest
UIWidgetLayout pulls the shared layout fields every widget node carries (page, group, label, order) out of node.GetData(). Widget describers call it and then fill Type/Config.
Convention (documented for widget implementers): data keys "page" (string, default "default"), "group" (string, optional section inside the page), "label" (string, falls back to "name" then the node id), "order" (number, optional sort hint within the group).
type UIWidgetNode ¶
type UIWidgetNode struct {
*BaseNode
// contains filtered or unexported fields
}
UIWidgetNode is the shared executor core for ui* widgets: it carries the host reference and the node's workflow id (resolved at factory time from the node entity — the NodeFactory signature carries no workflow parameter) and turns a computed state map into a sink push.
func NewUIWidgetNode ¶
func NewUIWidgetNode(node nodestore.NodeInterface, host NodeHost) *UIWidgetNode
NewUIWidgetNode creates the shared widget core for node on host.
func (*UIWidgetNode) Push ¶
func (n *UIWidgetNode) Push(state map[string]interface{})
Push stores state on the bound sink and broadcasts it to the workflow's dashboard clients. No-op when no sink is bound.
type UIWidgetSink ¶
type UIWidgetSink interface {
// UpdateWidget stores state for nodeID in workflowID and
// broadcasts it to that workflow's dashboard clients.
UpdateWidget(workflowID, nodeID string, state map[string]interface{})
}
UIWidgetSink is the host-side bridge a dashboard hub implements to receive per-widget state updates from ui* executors. The hub keeps retained state and broadcasts to connected clients; the contract is deliberately one method so any dashboard implementation can bind.
type WSSessions ¶
type WSSessions struct {
// contains filtered or unexported fields
}
wsSessions is the workflow-level registry of open websocket connections keyed by session id. It lives in host node state (like tcpSessions) so websocketOut — a different executor instance — can write back to the session that produced a message.
func NewWSSessions ¶
func NewWSSessions() *WSSessions
NewWSSessions returns an empty session registry (the value stored under WSSessionsKey in host node state).
func (*WSSessions) All ¶
func (s *WSSessions) All() []*websocket.Conn
All returns a snapshot of every registered connection.
func (*WSSessions) CloseAll ¶
func (s *WSSessions) CloseAll()
CloseAll closes and removes every registered connection.
func (*WSSessions) CloseAllWith ¶
func (s *WSSessions) CloseAllWith(code websocket.StatusCode, reason string)
CloseAllWith closes and removes every registered connection using the supplied close status and reason.
func (*WSSessions) DeleteIf ¶
func (s *WSSessions) DeleteIf(id string, conn *websocket.Conn)
DeleteIf removes id only when it still maps to conn.
Source Files
¶
- base_node.go
- context_store.go
- contracts.go
- credentials.go
- factory.go
- filex.go
- fs.go
- fs_ftp.go
- fs_sftp.go
- helpers.go
- host.go
- http_router.go
- inspection.go
- jsonsource.go
- linkshared.go
- mqttshare.go
- msgpath.go
- netx.go
- numeric.go
- passthrough.go
- queue_node.go
- registry.go
- schema_fields.go
- seq.go
- switchrules.go
- tcpshare.go
- tls.go
- uimanifest.go
- uimanifest_widgets.go
- uishare.go
- wsshare.go
Directories
¶
| Path | Synopsis |
|---|---|
|
Package batch contains the batch node implementation.
|
Package batch contains the batch node implementation. |
|
Package builtin aggregates every built-in node folder: importing it (blank import) registers all core node types with the nodes registry.
|
Package builtin aggregates every built-in node folder: importing it (blank import) registers all core node types with the nodes registry. |
|
Package catch contains the catch node implementation.
|
Package catch contains the catch node implementation. |
|
Package change contains the change node implementation.
|
Package change contains the change node implementation. |
|
Package checkpoint contains the checkpoint node implementation.
|
Package checkpoint contains the checkpoint node implementation. |
|
Package comment contains the comment node implementation.
|
Package comment contains the comment node implementation. |
|
Package complete contains the complete node implementation.
|
Package complete contains the complete node implementation. |
|
Package condition contains the condition node implementation.
|
Package condition contains the condition node implementation. |
|
Package csv contains the csv node implementation.
|
Package csv contains the csv node implementation. |
|
Package dashboard is the runtime bridge half of the end-user dashboard for the nodestore stack: the state sink ui* widget executors push into (nodebase.BindUIWidgetSink / nodebase.PushUIState in nodes/uishare.go), the per-workflow widget manifest + retained state registry, and the websocket endpoint dashboard clients sync through.
|
Package dashboard is the runtime bridge half of the end-user dashboard for the nodestore stack: the state sink ui* widget executors push into (nodebase.BindUIWidgetSink / nodebase.PushUIState in nodes/uishare.go), the per-workflow widget manifest + retained state registry, and the websocket endpoint dashboard clients sync through. |
|
Package db contains the db node implementation.
|
Package db contains the db node implementation. |
|
Package debug contains the debug node implementation.
|
Package debug contains the debug node implementation. |
|
Package decision contains the decision node implementation.
|
Package decision contains the decision node implementation. |
|
Package delay contains the delay node implementation.
|
Package delay contains the delay node implementation. |
|
Package doctotext contains the docToText node: it extracts text from a document payload (pdf/docx/odt/pptx/txt) — the inverse of the `pdf` node.
|
Package doctotext contains the docToText node: it extracts text from a document payload (pdf/docx/odt/pptx/txt) — the inverse of the `pdf` node. |
|
Package end contains the end node implementation.
|
Package end contains the end node implementation. |
|
Package exec contains the exec node implementation.
|
Package exec contains the exec node implementation. |
|
Package file contains the file node implementation.
|
Package file contains the file node implementation. |
|
Package filein contains the fileIn node implementation.
|
Package filein contains the fileIn node implementation. |
|
Package fsin contains the fsIn node implementation.
|
Package fsin contains the fsIn node implementation. |
|
Package fsout contains the fsOut node implementation.
|
Package fsout contains the fsOut node implementation. |
|
Package function contains the function node implementation.
|
Package function contains the function node implementation. |
|
Package html contains the html node implementation.
|
Package html contains the html node implementation. |
|
Package httprequest contains the httpRequest node implementation.
|
Package httprequest contains the httpRequest node implementation. |
|
Package httpresponse contains the httpResponse node implementation.
|
Package httpresponse contains the httpResponse node implementation. |
|
Package httptrigger contains the httpTrigger node implementation.
|
Package httptrigger contains the httpTrigger node implementation. |
|
Package inject contains the inject node implementation.
|
Package inject contains the inject node implementation. |
|
Package join contains the join node implementation.
|
Package join contains the join node implementation. |
|
Package json contains the json node implementation.
|
Package json contains the json node implementation. |
|
Package junction contains the junction node implementation.
|
Package junction contains the junction node implementation. |
|
Package linkcall contains the linkCall node implementation.
|
Package linkcall contains the linkCall node implementation. |
|
Package linkin contains the linkIn node implementation.
|
Package linkin contains the linkIn node implementation. |
|
Package linkout contains the linkOut node implementation.
|
Package linkout contains the linkOut node implementation. |
|
Package log contains the log node implementation.
|
Package log contains the log node implementation. |
|
Package mailin contains the mailIn node implementation.
|
Package mailin contains the mailIn node implementation. |
|
Package mailout contains the mailOut node implementation.
|
Package mailout contains the mailOut node implementation. |
|
Package mqttin contains the mqttIn node implementation.
|
Package mqttin contains the mqttIn node implementation. |
|
Package mqttout contains the mqttOut node implementation.
|
Package mqttout contains the mqttOut node implementation. |
|
Package pdf contains the pdf node: it renders the incoming payload to a PDF document (invoices, reports).
|
Package pdf contains the pdf node: it renders the incoming payload to a PDF document (invoices, reports). |
|
Package process contains the process node implementation.
|
Package process contains the process node implementation. |
|
Package queue contains the queue node implementation.
|
Package queue contains the queue node implementation. |
|
Package rangenode contains the range node implementation.
|
Package rangenode contains the range node implementation. |
|
Package rbe contains the rbe node implementation.
|
Package rbe contains the rbe node implementation. |
|
Package sort contains the sort node implementation.
|
Package sort contains the sort node implementation. |
|
Package split contains the split node implementation.
|
Package split contains the split node implementation. |
|
Package start contains the start node implementation.
|
Package start contains the start node implementation. |
|
Package status contains the status node implementation.
|
Package status contains the status node implementation. |
|
Package submitin contains the submitIn node implementation.
|
Package submitin contains the submitIn node implementation. |
|
Package switchnode contains the switch node implementation.
|
Package switchnode contains the switch node implementation. |
|
Package tail contains the tail node implementation.
|
Package tail contains the tail node implementation. |
|
Package tcpin contains the tcpIn node implementation.
|
Package tcpin contains the tcpIn node implementation. |
|
Package tcpout contains the tcpOut node implementation.
|
Package tcpout contains the tcpOut node implementation. |
|
Package tcprequest contains the tcpRequest node implementation.
|
Package tcprequest contains the tcpRequest node implementation. |
|
Package template contains the template node implementation.
|
Package template contains the template node implementation. |
|
Package tlsconfig contains the tlsConfig node implementation.
|
Package tlsconfig contains the tlsConfig node implementation. |
|
Package trigger contains the trigger node implementation.
|
Package trigger contains the trigger node implementation. |
|
Package udpin contains the udpIn node implementation.
|
Package udpin contains the udpIn node implementation. |
|
Package udpout contains the udpOut node implementation.
|
Package udpout contains the udpOut node implementation. |
|
Package uibutton contains the uiButton dashboard input widget: a button whose click emits the configured payload downstream.
|
Package uibutton contains the uiButton dashboard input widget: a button whose click emits the configured payload downstream. |
|
Package uichart contains the uiChart dashboard widget: a live line/bar chart of a numeric series.
|
Package uichart contains the uiChart dashboard widget: a live line/bar chart of a numeric series. |
|
Package uiform contains the uiForm dashboard input widget: a form of named fields whose submit emits an object msg.payload ({fieldName: value}).
|
Package uiform contains the uiForm dashboard input widget: a form of named fields whose submit emits an object msg.payload ({fieldName: value}). |
|
Package uigauge contains the uiGauge dashboard widget: a numeric value against a configured min/max range with units.
|
Package uigauge contains the uiGauge dashboard widget: a numeric value against a configured min/max range with units. |
|
Package uinotification contains the uiNotification dashboard widget: a toast on the dashboard page driven by the incoming message (text/level).
|
Package uinotification contains the uiNotification dashboard widget: a toast on the dashboard page driven by the incoming message (text/level). |
|
Package uitext contains the uiText dashboard widget: a label + formatted value readout.
|
Package uitext contains the uiText dashboard widget: a label + formatted value readout. |
|
Package uitextinput contains the uiTextInput dashboard input widget: a text field whose enter/send emits the string as msg.payload.
|
Package uitextinput contains the uiTextInput dashboard input widget: a text field whose enter/send emits the string as msg.payload. |
|
Package unknown contains the unknown node implementation.
|
Package unknown contains the unknown node implementation. |
|
Package watch contains the watch node implementation.
|
Package watch contains the watch node implementation. |
|
Package websocketin contains the websocketIn node implementation.
|
Package websocketin contains the websocketIn node implementation. |
|
Package websocketout contains the websocketOut node implementation.
|
Package websocketout contains the websocketOut node implementation. |
|
Package xml contains the xml node implementation.
|
Package xml contains the xml node implementation. |
|
Package yaml contains the yaml node implementation.
|
Package yaml contains the yaml node implementation. |