function

package
v0.0.0-...-0c19b3a Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package function provides the Function node implementation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FunctionConfig

type FunctionConfig struct {
	Code   string `json:"code"`
	UseMsg bool   `json:"useMsg"`
}

type FunctionNode

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

func NewFunctionNode

func NewFunctionNode() *FunctionNode

func (*FunctionNode) Execute

func (n *FunctionNode) Execute(ctx interface{}, input map[string]interface{}) (map[string]interface{}, error)

func (*FunctionNode) GetConfig

func (n *FunctionNode) GetConfig() map[string]interface{}

func (*FunctionNode) GetError

func (n *FunctionNode) GetError() (bool, string)

func (*FunctionNode) SetConfig

func (n *FunctionNode) SetConfig(config map[string]interface{}) error

func (*FunctionNode) Validate

func (n *FunctionNode) Validate() error

Jump to

Keyboard shortcuts

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