input

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: 7 Imported by: 0

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

type Transformer func(string) (interface{}, error)

Transformer converts input line into a request.

Jump to

Keyboard shortcuts

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