gonan

package module
v0.0.0-...-882b8c7 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2013 License: MIT Imports: 8 Imported by: 0

README

Gonan, The Destroyer

Go library to stress test HTTP servers.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Iterations  int64
	Concurrency int
	Domain      string
	GatewayId   string
	Server      string
	MaxRetries  int
	ReadTimeout int
}

type Context

type Context struct {
	Client *http.Client
	Config
}

type Flow

type Flow interface {
	Run(*Context) error
}

type Result

type Result struct {
	Name            string
	StartTime       time.Time
	EndTime         time.Time
	NumSuccess      int64
	NumError        int64
	RequestRetries  int64
	NumHttpRequests int64
	Config
}

type Run

type Run interface {
	ExecuteAsync() (*Result, chan error)
	Execute() (*Result, error)
	Cancel()
}

func CreateRun

func CreateRun(flow Flow, config *Config) (Run, error)

Directories

Path Synopsis
examples

Jump to

Keyboard shortcuts

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