options

package
v0.0.0-...-4b634d0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2022 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Target   string
	Duration time.Duration
	Tests    []int
	Start    int

	Input string

	BufferSize   int
	Timeout      time.Duration
	Distribution func(float64) bender.IntervalGenerator
	Unit         time.Duration
	NoStatistics bool

	Constraints []*tester.Constraint
	Growth      tester.Growth

	Recorders []bender.Recorder
}

Options represents common options for the Commands.

func NewOptions

func NewOptions() *Options

NewOptions returns new options.

func (*Options) AddRecorder

func (o *Options) AddRecorder(recorder bender.Recorder)

AddRecorder adds a recorder to options.

func (*Options) GetUnit

func (o *Options) GetUnit() time.Duration

GetUnit returns a unit used in tests.

Jump to

Keyboard shortcuts

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