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 (*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)
Click to show internal directories.
Click to hide internal directories.