Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NoopRequestGenerator = RequestGeneratorFn(func() []byte { return nil })
Functions ¶
This section is empty.
Types ¶
type Finished ¶
type Finished func()
Finished should be called when a function exits to stop the load generation
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
type RequestGenerator ¶
type RequestGenerator interface {
Generate() []byte
}
func NewRequestGenerator ¶
func NewRequestGenerator(body string, size int, variance int, seed int64) RequestGenerator
type RequestGeneratorFn ¶
type RequestGeneratorFn func() []byte
func (RequestGeneratorFn) Generate ¶
func (f RequestGeneratorFn) Generate() []byte
Click to show internal directories.
Click to hide internal directories.