comment

package
v0.2.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: 4 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 comment contains the comment node implementation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommentConfig

type CommentConfig struct {
	// Info is the free-form annotation text shown on the canvas
	// (Node-RED field name: info).
	Info string `json:"info"`
}

CommentConfig holds configuration for the comment node — the Node-RED `comment` equivalent. It carries only annotation text and has no runtime behaviour; the node deploys and round-trips but is never wired, so Execute simply passes the (never-delivered) payload.

type CommentNode

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

CommentNode is a metadata-only flow annotation (Node-RED `comment`). It renders in the editor and keeps its text in the flow export, but it has no inputs/outputs and never executes.

func NewCommentNode

func NewCommentNode(node nodestore.NodeInterface, config *CommentConfig) *CommentNode

NewCommentNode creates a new comment node

func (*CommentNode) Execute

Execute is a no-op pass-through: a comment node has no ports, so no message ever reaches it; the implementation exists to satisfy the NodeExecutor contract.

func (*CommentNode) Validate

func (n *CommentNode) Validate() error

Validate always passes — an annotation cannot be misconfigured.

Jump to

Keyboard shortcuts

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