fasthttp

package
v0.3.11 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package fasthttp implements http load generator with fasthttp transport.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JobProducer

type JobProducer struct {
	PrepareRequest func(i int, req *fasthttp.Request) error
	// contains filtered or unexported fields
}

JobProducer sends HTTP requests.

func NewJobProducer

func NewJobProducer(f nethttp.Flags) (*JobProducer, error)

NewJobProducer creates load generator.

func (*JobProducer) Job

func (j *JobProducer) Job(i int) (time.Duration, error)

Job sends a single http request.

func (*JobProducer) RequestCounts

func (j *JobProducer) RequestCounts() map[string]int

RequestCounts returns distribution by status code.

func (*JobProducer) String added in v0.3.0

func (j *JobProducer) String() string

String reports results.

Jump to

Keyboard shortcuts

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