engine

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: May 1, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

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

Engine executes a test definition.

func New

func New(phases []scheduler.Phase, scenario func(context.Context) (int, error), maxConcurrency int) *Engine

New creates an engine for the given execution inputs.

func (*Engine) Run

func (e *Engine) Run(ctx context.Context) (metrics.Result, error)

Run executes each phase in sequence through the scheduler. Scenario errors are recorded in metrics and do not stop the run. A non-nil error indicates scheduler failure or context cancellation.

Jump to

Keyboard shortcuts

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