Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRequestGenerator ¶
func NewRequestGenerator(filename string, transformer Transformer, mods ...Modifier) (runner.RequestGenerator, error)
NewRequestGenerator reads data from the specified input and converts it into requests using given transformer. The lines which aren't formatted correctly are skipped. The requests are then reused in a round-robin manner inside the generator. If modifiers are provided they are applied to the request every time just before being returned.
Types ¶
type Modifier ¶
type Modifier func(interface{}) (interface{}, error)
Modifier changes request right before sending.
type Transformer ¶
Transformer converts input line into a request.
Click to show internal directories.
Click to hide internal directories.