Documentation
¶
Overview ¶
Package uuid contains the UUID node: RFC 9562 UUID generation using Go's standard-library uuid package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Version string `json:"version"`
Target string `json:"target"`
Format string `json:"format"`
}
Config holds the UUID node configuration.
type Node ¶
Node writes a freshly generated UUID into each input message.
func NewNode ¶
func NewNode(node nodestore.NodeInterface, cfg *Config) *Node
NewNode creates a UUID node.
func (*Node) Execute ¶
func (n *Node) Execute(ctx context.Context, in nodestore.MessageInterface) (nodestore.MessageInterface, error)
Execute generates one fresh UUID for this input message. Generation is deliberately independent of the input payload so every retry, branch, and replay gets a new identifier unless the workflow itself persists one.