local

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2019 License: AGPL-3.0 Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProcessStages added in v0.18.0

func ProcessStages(startVUs int64, stages []lib.Stage, t time.Duration) (null.Int, bool)

Returns the VU count and whether to keep going at the specified time.

Types

type Executor

type Executor struct {
	Runner lib.Runner
	Logger *logrus.Logger
	// contains filtered or unexported fields
}

func New

func New(r lib.Runner) *Executor

func (*Executor) GetEndIterations

func (e *Executor) GetEndIterations() null.Int

func (*Executor) GetEndTime

func (e *Executor) GetEndTime() types.NullDuration

func (*Executor) GetIterations

func (e *Executor) GetIterations() int64

func (*Executor) GetLogger

func (e *Executor) GetLogger() *logrus.Logger

GetLogger returns current Executor's logger.

func (*Executor) GetRunner

func (e *Executor) GetRunner() lib.Runner

func (*Executor) GetStages added in v0.18.0

func (e *Executor) GetStages() []lib.Stage

func (*Executor) GetTime

func (e *Executor) GetTime() time.Duration

func (*Executor) GetVUs

func (e *Executor) GetVUs() int64

func (*Executor) GetVUsMax

func (e *Executor) GetVUsMax() int64

func (*Executor) IsPaused

func (e *Executor) IsPaused() bool

func (*Executor) IsRunning

func (e *Executor) IsRunning() bool

func (*Executor) Run

func (e *Executor) Run(parent context.Context, engineOut chan<- stats.SampleContainer) (reterr error)

func (*Executor) SetEndIterations

func (e *Executor) SetEndIterations(i null.Int)

func (*Executor) SetEndTime

func (e *Executor) SetEndTime(t types.NullDuration)

func (*Executor) SetLogger

func (e *Executor) SetLogger(l *logrus.Logger)

SetLogger sets Executor's logger.

func (*Executor) SetPaused

func (e *Executor) SetPaused(paused bool)

func (*Executor) SetRunSetup added in v0.20.0

func (e *Executor) SetRunSetup(r bool)

func (*Executor) SetRunTeardown added in v0.20.0

func (e *Executor) SetRunTeardown(r bool)

func (*Executor) SetStages added in v0.18.0

func (e *Executor) SetStages(s []lib.Stage)

func (*Executor) SetVUs

func (e *Executor) SetVUs(num int64) error

func (*Executor) SetVUsMax

func (e *Executor) SetVUsMax(max int64) error

Jump to

Keyboard shortcuts

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