boomer

package
v0.0.0-...-c2c374e Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2016 License: Apache-2.0 Imports: 17 Imported by: 1

Documentation

Overview

Package boomer provides commands to run load tests and display results.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Boomer

type Boomer struct {
	// Request URL to check load with
	RequestURL string

	// Basic authentication username parameter is needed
	AuthUsername string

	// Basic authentication password parameter is needed
	AuthPassword string

	// HTTP request body content
	RequestBody string

	// HTTP Method (GET, POST, PUT, DELETE)
	Method string

	// HTTP request header
	Header http.Header

	// N is the total number of requests to make.
	N int

	// C is the concurrency level, the number of concurrent workers to run.
	C int

	// Qps is the rate limit.
	Qps int

	// AllowInsecure is an option to allow insecure TLS/SSL certificates.
	AllowInsecure bool

	// DisableCompression is an option to disable compression in response
	DisableCompression bool

	// DisableKeepAlives is an option to prevents re-use of TCP connections between different HTTP requests
	DisableKeepAlives bool

	// Output represents the output type. If "csv" is provided, the
	// output will be dumped as a csv stream.
	Output string

	// ProxyAddr is the address of HTTP proxy server in the format on "host:port".
	// Optional.
	ProxyAddr *url.URL

	// ReadAll determines whether the body of the response needs
	// to be fully consumed.
	ReadAll bool

	// Connection time, how long to wait for response before closing connection
	Timeout time.Duration
	// contains filtered or unexported fields
}

func (*Boomer) Run

func (b *Boomer) Run()

Run makes all the requests, prints the summary. It blocks until all work is done.

Jump to

Keyboard shortcuts

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