Documentation
¶
Index ¶
- func RunLoadTest(opts ...LoadTestOption)
- type ExecutionResponse
- type Executor
- type ExecutorOption
- type ExecutorOptions
- type GroupOption
- type GroupOptions
- type LoadTest
- type LoadTestOption
- func WithAdditionalResultHandler(handler resultHandler) LoadTestOption
- func WithConstantPacer(rate pacer.Rate) LoadTestOption
- func WithContextModifier(fn func(ctx context.Context) context.Context) LoadTestOption
- func WithDefaultTimeout(timeout time.Duration) LoadTestOption
- func WithDuration(loadTestDuration time.Duration) LoadTestOption
- func WithExecutors(executors ...Executor) LoadTestOption
- func WithInitialWorkerCount(count int) LoadTestOption
- func WithLinearRampUpPacer(startRate, endRate pacer.Rate, rampUpDuration time.Duration) LoadTestOption
- func WithMaxWorkerCount(count int) LoadTestOption
- func WithReportInterval(reportInterval time.Duration) LoadTestOption
- func WithWeightOverrides(overrides map[string]int) LoadTestOption
- type LoadTestOptions
- type Result
- type Runner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunLoadTest ¶
func RunLoadTest(opts ...LoadTestOption)
Types ¶
type ExecutionResponse ¶
type Executor ¶
type Executor interface { Execute(ctx context.Context) ExecutionResponse Name() string // TODO: remove pointer and maybe split into two functions Options() *ExecutorOptions }
func NewGenericExecutor ¶ added in v0.3.1
func WithGroup ¶
func WithGroup(opts ...GroupOption) Executor
type ExecutorOption ¶ added in v0.3.1
type ExecutorOption func(options *ExecutorOptions)
func WithTimeout ¶ added in v0.3.1
func WithTimeout(timeout time.Duration) ExecutorOption
func WithWeight ¶ added in v0.3.1
func WithWeight(weight int) ExecutorOption
type ExecutorOptions ¶
type GroupOption ¶
type GroupOption func(*GroupOptions)
func WithGroupExecutors ¶
func WithGroupExecutors(executors ...Executor) GroupOption
func WithGroupName ¶
func WithGroupName(name string) GroupOption
func WithGroupTimeout ¶
func WithGroupTimeout(timeout time.Duration) GroupOption
func WithGroupWeight ¶
func WithGroupWeight(weight int) GroupOption
type GroupOptions ¶
type GroupOptions struct {
// contains filtered or unexported fields
}
type LoadTest ¶
type LoadTestOption ¶
type LoadTestOption func(*LoadTestOptions)
func WithAdditionalResultHandler ¶
func WithAdditionalResultHandler(handler resultHandler) LoadTestOption
func WithConstantPacer ¶
func WithConstantPacer(rate pacer.Rate) LoadTestOption
func WithContextModifier ¶
func WithContextModifier(fn func(ctx context.Context) context.Context) LoadTestOption
func WithDefaultTimeout ¶
func WithDefaultTimeout(timeout time.Duration) LoadTestOption
func WithDuration ¶
func WithDuration(loadTestDuration time.Duration) LoadTestOption
func WithExecutors ¶
func WithExecutors(executors ...Executor) LoadTestOption
func WithInitialWorkerCount ¶
func WithInitialWorkerCount(count int) LoadTestOption
func WithLinearRampUpPacer ¶
func WithLinearRampUpPacer(startRate, endRate pacer.Rate, rampUpDuration time.Duration) LoadTestOption
func WithMaxWorkerCount ¶
func WithMaxWorkerCount(count int) LoadTestOption
func WithReportInterval ¶
func WithReportInterval(reportInterval time.Duration) LoadTestOption
func WithWeightOverrides ¶
func WithWeightOverrides(overrides map[string]int) LoadTestOption
type LoadTestOptions ¶
type LoadTestOptions struct {
// contains filtered or unexported fields
}
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
func NewRunner ¶
func NewRunner(loadTestOptions LoadTestOptions) *Runner
Source Files
¶
Click to show internal directories.
Click to hide internal directories.