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 ¶
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 ¶
func (n *CommentNode) Execute(ctx context.Context, input nodestore.MessageInterface) (nodestore.MessageInterface, error)
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.