setvar

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSetVariableNode

func NewSetVariableNode(flowOpCtx *model.FlowOperationalContext, meta model.MetaNode, ctx *model.Context) model.Node

Types

type SetVariableNode

type SetVariableNode struct {
	base.BaseNode
	// contains filtered or unexported fields
}

func (*SetVariableNode) LoadNodeConfig

func (node *SetVariableNode) LoadNodeConfig() error

func (*SetVariableNode) OnInput

func (node *SetVariableNode) OnInput(msg *model.Message) ([]model.NodeID, error)

func (*SetVariableNode) WaitForEvent

func (node *SetVariableNode) WaitForEvent(responseChannel chan model.ReactorEvent)

type SetVariableNodeConfig

type SetVariableNodeConfig struct {
	Name               string
	Description        string
	UpdateGlobal       bool // true - update global variable ; false - update local variable
	UpdateInputMsg     bool // true - update input message  ; false - update context variable
	IsVariableInMemory bool // true - is saved on disk ; false - in memory only
	DefaultValue       model.Variable
}

Jump to

Keyboard shortcuts

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