lib

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrWrongTarget         = errors.New("wrong target URL")
	ErrUnsupportedProtocol = errors.New("unsupported target protocol")
	ErrMissingPort         = errors.New("missing target port")
)
View Source
var (
	ErrPluginOpen      = errors.New("could not open plugin")
	ErrPluginLookup    = errors.New("could not lookup plugin interface")
	ErrPluginInterface = errors.New("module symbol doesn't match GocannonPlugin")
)

Functions

This section is empty.

Types

type Gocannon

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

Gocannon represents a single gocannon instance with a config defined upon its creation.

func NewGocannon

func NewGocannon(cfg common.Config) (Gocannon, error)

NewGocannon creates a new gocannon instance using a provided config.

func (Gocannon) Run

func (g Gocannon) Run() (TestResults, error)

Run performs the load test.

type TestResults

type TestResults interface {
	GetReqCount() int64
	GetReqPerSec() float64
	GetLatencyAvg() float64
	GetLatencyPercentiles() []int64
	PrintReport(format string)
}

TestResults allows for accessing the load test results.

Jump to

Keyboard shortcuts

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