loadgen

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator interface {
	Init() error
	InitDone() error
	Tick() error
	Finish() error
}

type LoadGenerator

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

func NewLoadGenerator

func NewLoadGenerator(id int, requestrate int, concurrency int, newGenerator NewGenerator, workCh chan interface{}, ctx context.Context, s *stats.Stats) *LoadGenerator

func (*LoadGenerator) Finish added in v0.1.7

func (lg *LoadGenerator) Finish() error

func (*LoadGenerator) Init

func (lg *LoadGenerator) Init() error

func (*LoadGenerator) Run

func (lg *LoadGenerator) Run()

type NewGenerator

type NewGenerator func(id int, requestrate int, concurrency int, ctx context.Context, stat *stats.Stats) Generator

Jump to

Keyboard shortcuts

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