Documentation
¶
Overview ¶
Package log provides logging node factory for registry integration.
Package log provides logging node implementation for workflow graph execution.
Index ¶
- Constants
- func NewLogNodeFactory() protocol.NodeFactory
- type LogLevel
- type LogNode
- func (n *LogNode) Execute(ctx models.ExecutionContext, inputs map[string]models.NodeResult) (map[string]models.NodeResult, error)
- func (n *LogNode) ID() string
- func (n *LogNode) InputPorts() []models.InputPort
- func (n *LogNode) OutputPorts() []models.OutputPort
- func (n *LogNode) Type() string
- func (n *LogNode) Validate(config map[string]any) error
- type LogNodeFactory
Constants ¶
View Source
const ( OutputPortSuccess = "success" OutputPortError = "error" InputPortMain = "main" )
Variables ¶
This section is empty.
Functions ¶
func NewLogNodeFactory ¶
func NewLogNodeFactory() protocol.NodeFactory
NewLogNodeFactory creates a new factory instance.
Types ¶
type LogNode ¶
type LogNode struct {
// contains filtered or unexported fields
}
LogNode implements the Node interface for logging messages.
func NewLogNode ¶
NewLogNode creates a new logging node.
func (*LogNode) Execute ¶
func (n *LogNode) Execute(ctx models.ExecutionContext, inputs map[string]models.NodeResult) (map[string]models.NodeResult, error)
Execute performs the logging operation.
func (*LogNode) InputPorts ¶
InputPorts returns the input ports for the node.
func (*LogNode) OutputPorts ¶
func (n *LogNode) OutputPorts() []models.OutputPort
OutputPorts returns the output ports for the node.
type LogNodeFactory ¶
type LogNodeFactory struct{}
LogNodeFactory creates LogNode instances.
func (*LogNodeFactory) Create ¶
func (f *LogNodeFactory) Create(ctx context.Context, id string, config map[string]any) (protocol.Node, error)
Create creates a new LogNode instance.
func (*LogNodeFactory) Description ¶
func (f *LogNodeFactory) Description() string
Description returns the factory description.
func (*LogNodeFactory) Schema ¶
func (f *LogNodeFactory) Schema() map[string]any
Schema returns the JSON schema for Log node configuration.
Click to show internal directories.
Click to hide internal directories.