httptest

package
v0.16.44 Latest Latest
Warning

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

Go to latest
Published: May 12, 2023 License: Apache-2.0, MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VegetaAttacker

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

func NewVegetaAttacker

func NewVegetaAttacker(url string, freq int, per time.Duration, timeout time.Duration) *VegetaAttacker

func (*VegetaAttacker) Attack

func (atk *VegetaAttacker) Attack(w io.Writer, d time.Duration, name string)

func (*VegetaAttacker) CountStatus

func (atk *VegetaAttacker) CountStatus(code int) (int, bool)

func (*VegetaAttacker) Metrics

func (atk *VegetaAttacker) Metrics() *vegeta.Metrics

func (*VegetaAttacker) Success

func (atk *VegetaAttacker) Success() float64

func (*VegetaAttacker) TotalRequests

func (atk *VegetaAttacker) TotalRequests() uint64

func (*VegetaAttacker) TotalSuccess

func (atk *VegetaAttacker) TotalSuccess() float64

Jump to

Keyboard shortcuts

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