flowcore

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

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

Go to latest
Published: Mar 26, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Executor

type Executor struct {
	Flow  *types.Flow
	State *FlowState
}

func NewExecutor

func NewExecutor(flow *types.Flow, state *FlowState) *Executor

func (*Executor) NextState

func (ex *Executor) NextState(nodeType types.NodeType, data map[string]string) (_nextState *FlowState, _nextNodes []*types.Node, _err error)

type FlowState

type FlowState struct {
	PageID dot.IntID `json:"page_id"`

	PSID dot.IntID `json:"psid"`

	FlowID dot.IntID `json:"flow_id"`

	LastNodeID dot.IntID `json:"last_node_id"`

	NodeID dot.IntID `json:"node_id"`

	Extra map[string]string `json:"extra"`
}

func NewFlowState

func NewFlowState(pageID, psID, flowID dot.IntID) *FlowState

func (*FlowState) String

func (s *FlowState) String() string

Jump to

Keyboard shortcuts

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