loadtestmodule

package
v19.2.0-rc43 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package loadtestmodule provides a compiled-in AutoFlow module used only by the autoflow load test. It mocks a Duo/tool conversation so the load-test workflow (see scripts/loadtests/autoflow/manifests/configmap.yaml) exercises the real load(), invoke-action, gather and sleep code paths without needing external agents. It is deliberately not part of the production internal/module/autoflow/builtin_modules set.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Module

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

Module is a stateful mock module. A single instance is shared across all workflows running on an activity worker, so duoCallCounts is guarded by mu.

func New

func New() *Module

func (*Module) InvokeAction

func (m *Module) InvokeAction(
	ctx context.Context,
	actionName, workflowKey, identityKey string,
	args []*pkg_autoflow.Value,
	kwargs []*pkg_autoflow.NamedValue,
	channelTokens []*pkg_autoflow.ChannelToken,
) (*pkg_autoflow.Result, error)

func (*Module) LoadModuleDescriptor

func (m *Module) LoadModuleDescriptor(ctx context.Context) (*pkg_autoflow.ModuleDescriptor, error)

func (*Module) Name

func (m *Module) Name() string

Jump to

Keyboard shortcuts

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