nodes

package module
v0.0.0-...-7dd0bdf Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DummyNode

type DummyNode struct {
	Node
}

* Node that has the concatenation of its predecessors' results and a hard-coded value for its result.

func NewDummyNode

func NewDummyNode() *DummyNode

type DummyNodeB

type DummyNodeB struct {
	Node
}

* Node that has a hard-coded value for its result.

func NewDummyNodeB

func NewDummyNodeB() *DummyNodeB

type DummyNodeC

type DummyNodeC struct {
	Node
	// contains filtered or unexported fields
}

* Node that has a hard-coded value for its result.

func NewDummyNodeC

func NewDummyNodeC() *DummyNodeC

type InterfaceNode

type InterfaceNode interface {
	Process(interfaceNode InterfaceNode, workflowContext *WorkflowContext)

	GetResult(interfaceNode InterfaceNode, workflowContext *WorkflowContext) interface{}
	// contains filtered or unexported methods
}

* Interface for defining unit of work to be processed by event loop. Classes that implement InterfaceNode can provide their own constructor.

type Node

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

* Concrete type for defining unit of work to be processed by event loop.

func (*Node) GetResult

func (node *Node) GetResult(interfaceNode InterfaceNode, workflowContext *WorkflowContext) interface{}

func (*Node) Process

func (node *Node) Process(interfaceNode InterfaceNode, workflowContext *WorkflowContext)

type WorkflowContext

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

* Class that stores information about the current state of a running workflow.

func NewWorkflowContext

func NewWorkflowContext() *WorkflowContext

func (*WorkflowContext) GetNodes

func (workflowContext *WorkflowContext) GetNodes() []InterfaceNode

func (*WorkflowContext) SetNodes

func (workflowContext *WorkflowContext) SetNodes(nodes []InterfaceNode)

Jump to

Keyboard shortcuts

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