Help us shape the future of Go! Take the 2026 Go Developer Survey

transform

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Overview

Package transform provides data transformation node factory for registry integration.

Package transform provides data transformation node implementation for workflow graph execution.

Index

Constants

View Source
const (
	OutputPortSuccess = "success"
	OutputPortError   = "error"
	InputPortMain     = "main"
)

Variables

This section is empty.

Functions

func NewTransformNodeFactory

func NewTransformNodeFactory() protocol.NodeFactory

NewTransformNodeFactory creates a new factory instance.

Types

type TransformNode

type TransformNode struct {
	// contains filtered or unexported fields
}

TransformNode implements the Node interface for data transformation.

func NewTransformNode

func NewTransformNode(id string, config map[string]any) (*TransformNode, error)

NewTransformNode creates a new data transformation node.

func (*TransformNode) Execute

Execute performs data transformation using Go templates.

func (*TransformNode) ID

func (n *TransformNode) ID() string

ID returns the node ID.

func (*TransformNode) InputPorts

func (n *TransformNode) InputPorts() []models.InputPort

InputPorts returns the input ports for the node.

func (*TransformNode) OutputPorts

func (n *TransformNode) OutputPorts() []models.OutputPort

OutputPorts returns the output ports for the node.

func (*TransformNode) Type

func (n *TransformNode) Type() string

Type returns the node type.

func (*TransformNode) Validate

func (n *TransformNode) Validate(config map[string]any) error

Validate validates the node configuration.

type TransformNodeFactory

type TransformNodeFactory struct{}

TransformNodeFactory creates TransformNode instances.

func (*TransformNodeFactory) Create

func (f *TransformNodeFactory) Create(ctx context.Context, id string, config map[string]any) (protocol.Node, error)

Create creates a new TransformNode instance.

func (*TransformNodeFactory) Description

func (f *TransformNodeFactory) Description() string

Description returns the factory description.

func (*TransformNodeFactory) ID

func (f *TransformNodeFactory) ID() string

ID returns the factory ID.

func (*TransformNodeFactory) Name

func (f *TransformNodeFactory) Name() string

Name returns the factory name.

func (*TransformNodeFactory) Schema

func (f *TransformNodeFactory) Schema() map[string]any

Schema returns the JSON schema for Transform node configuration.

Jump to

Keyboard shortcuts

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