local

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2018 License: AGPL-3.0 Imports: 12 Imported by: 0

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 *log.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() *log.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 *log.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