types

package
v1.6.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Environment

type Environment struct {
	Client      *helix.CQLClient
	ChaosA      *chaos.Session
	ChaosB      *chaos.Session
	Tracker     *workload.WriteTracker
	Stats       *workload.WorkloadStats
	Logger      *slog.Logger
	Metrics     *testutil.TestMetricsCollector
	MemReplayer *replay.MemoryReplayer
}

Environment holds the shared resources for the simulation.

type Scenario

type Scenario interface {
	// Name returns the unique name of the scenario.
	Name() string

	// Description returns a human-readable description.
	Description() string

	// Run executes the scenario logic.
	Run(ctx context.Context, env *Environment) error
}

Scenario defines a test scenario interface.

Jump to

Keyboard shortcuts

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