client

package
v0.0.0-...-68647bd Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientRespMetric

type ClientRespMetric struct {
	Status  int
	Latency float64
	Size    int
}

type PerfClient

type PerfClient struct {
	RespChan chan *ClientRespMetric
	ErrChan  chan error
	Client   []*fasthttp.PipelineClient
	// contains filtered or unexported fields
}

func New

func New(clients int32, pipeline int32, timeout time.Duration, uri string) (*PerfClient, error)

func (*PerfClient) Printf

func (p *PerfClient) Printf(format string, args ...interface{})

Prinf Nothing, I hate the logs during performance test

func (*PerfClient) Run

func (p *PerfClient) Run()

func (*PerfClient) StartClient

func (p *PerfClient) StartClient(idx int)

Jump to

Keyboard shortcuts

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