component

package
v0.0.0-...-2ec072f Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddPlugin

func AddPlugin(componentType ComponentType, plugin func(*ComponentInfo) node.INode)

func CreateComponent

func CreateComponent(ci *ComponentInfo) (node.INode, error)

Types

type ComponentInfo

type ComponentInfo struct {
	TypeName    ComponentType
	Attrs       map[string]interface{}
	NodeID      int
	NodeName    string
	Caller      *commonElementsFunction.Caller
	IsAsync     bool
	InputVars   []string
	OutputVars  []string
	Params      []*commonElementsFunction.Param
	OutputTypes []*commonElementsVariable.VarType
}

func (*ComponentInfo) GetAttr

func (ci *ComponentInfo) GetAttr(key string, defaultValue interface{}) interface{}

type ComponentType

type ComponentType string
const (
	ComponentPrint ComponentType = "print"
)

type PrintComponent

type PrintComponent struct {
	node.Function
}

Jump to

Keyboard shortcuts

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