simulation

package
v0.0.0-...-36d6306 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockFlowParams

type MockFlowParams struct {
	RequestCount int           // Number of request nodes to create
	ForLoopCount int           // Number of for loop nodes to create
	Delay        time.Duration // Execution delay per node
}

MockFlowParams defines the parameters for creating mock flows

type MockFlowResult

type MockFlowResult struct {
	Nodes        map[idwrap.IDWrap]node.FlowNode
	Edges        []mflow.Edge
	EdgesMap     mflow.EdgesMap
	StartNodeID  idwrap.IDWrap
	StartNodeIDs []idwrap.IDWrap
}

MockFlowResult contains the three data structures FlowLocalRunner needs

func CreateMockFlow

func CreateMockFlow(params MockFlowParams) MockFlowResult

CreateMockFlow creates a simple linear mock flow for testing Flow pattern: start → request1 → request2 → ... → forLoop1 → forLoop2 → ...

Jump to

Keyboard shortcuts

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