payloader

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2023 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	JwtCacheDir string
)

Functions

This section is empty.

Types

type ByteSize

type ByteSize struct {
	Single    int64
	Total     int64
	PerSecond int64
}

type GoPayloaderResults

type GoPayloaderResults struct {
	Total         time.Duration
	Start         time.Time
	End           time.Time
	CompletedReqs int64
	FailedReqs    int64
	RPS           RPS
	Latency       Latency
	Responses     map[worker.ResponseCode]int64
	Errors        map[string]uint64
	ReqByteSize   ByteSize
	RespByteSize  ByteSize
}

type Latency

type Latency struct {
	Average time.Duration
	Max     time.Duration
	Min     time.Duration
	Total   time.Duration
}

type PayLoader

type PayLoader struct {
	// contains filtered or unexported fields
}

func NewPayLoader

func NewPayLoader(config *config.Config) *PayLoader

func (*PayLoader) ComputeResults

func (p *PayLoader) ComputeResults(workers []worker.Worker, results *GoPayloaderResults) (*GoPayloaderResults, error)

func (*PayLoader) Run

func (p *PayLoader) Run() (*GoPayloaderResults, error)

type RPS

type RPS struct {
	Average float64
	Max     int64
	Min     int64
}

Directories

Path Synopsis
output
cli

Jump to

Keyboard shortcuts

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