runner

package
v0.0.0-...-b1767e8 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SlackNotifier

type SlackNotifier interface {
	Notify(id, header, details string) error
}

SlackNotifier allows sending notification about messages to Slack channel.

type StressTestRunner

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

StressTestRunner is a test runner

func NewStressTestRunner

func NewStressTestRunner(slackNotifier SlackNotifier, log logrus.FieldLogger) *StressTestRunner

NewStressTestRunner is a constructor for StressTestRunner

func (*StressTestRunner) Run

func (r *StressTestRunner) Run(stopCh <-chan struct{}, throttle time.Duration, test Test) error

Run executes given test in a loop with given throttle

type Test

type Test interface {
	Execute(stop <-chan struct{}) error
	Name() string
}

Test allows to execute test in a generic way

Jump to

Keyboard shortcuts

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