test_node

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BoolOperationPass          = "pass"
	BoolOperationReverse       = "reverse"
	BoolOperationRand          = "rand"
	BoolOperationUseLastResult = "last"
)
View Source
const (
	TypeBool = "bool"
)
View Source
const (
	TypePrintln = "println"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BoolBuilder

type BoolBuilder struct{}

func (*BoolBuilder) Build

func (builder *BoolBuilder) Build(name string, _ map[string]any, runParams map[string]any) (component.Component, error)

func (*BoolBuilder) ProductType

func (builder *BoolBuilder) ProductType() string

type BoolNode

type BoolNode struct {
	component.BaseComponent
}

func (*BoolNode) Run

func (n *BoolNode) Run(globalRunParams *component.GlobalRunParams, dynamicParams map[string]any) (any, error)

type BoolRunParams

type BoolRunParams struct {
	Operation string `mapstructure:"op" structs:"op"`
	Value     *bool  `mapstructure:"value" structs:"value"`
}

type PrintlnBuilder

type PrintlnBuilder struct{}

func (*PrintlnBuilder) Build

func (builder *PrintlnBuilder) Build(name string, _ map[string]any, runParams map[string]any) (component.Component, error)

func (*PrintlnBuilder) ProductType

func (builder *PrintlnBuilder) ProductType() string

type PrintlnNode

type PrintlnNode struct {
	component.BaseComponent
}

func (*PrintlnNode) Run

func (n *PrintlnNode) Run(globalRunParams *component.GlobalRunParams, dynamicParams map[string]any) (any, error)

type PrintlnRunParams

type PrintlnRunParams struct {
	Content string `mapstructure:"content"`
}

Jump to

Keyboard shortcuts

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