Versions in this module Expand all Collapse all v1 v1.0.0 May 28, 2014 Changes in this version + var DefaultAttacker = NewAttacker() + func ReportJSON(results []Result) ([]byte, error) + func ReportPlot(results []Result) ([]byte, error) + func ReportText(results []Result) ([]byte, error) + type Attacker struct + func NewAttacker() *Attacker + func (a *Attacker) SetRedirects(redirects int) + func (a *Attacker) SetTimeout(timeout time.Duration) + func (a Attacker) AttackConcy(tgts Targets, concurrency uint64, number uint64) Results + func (a Attacker) AttackRate(tgts Targets, rate uint64, du time.Duration) Results + type Metrics struct + BytesIn struct{ ... } + BytesOut struct{ ... } + Duration time.Duration + Errors []string + Latencies struct{ ... } + Qps float64 + Requests uint64 + StatusCodes map[string]int + Success float64 + func NewMetrics(results []Result) *Metrics + type Reporter func([]Result) ([]byte, error) + type Result struct + BytesIn uint64 + BytesOut uint64 + Code uint16 + Error string + Latency time.Duration + Timestamp time.Time + type Results []Result + func AttackConcy(tgts Targets, concurrency uint64, number uint64) Results + func AttackRate(tgts Targets, rate uint64, du time.Duration) Results + func (r *Results) Decode(in io.Reader) error + func (r Results) Encode(out io.Writer) error + func (r Results) Len() int + func (r Results) Less(i, j int) bool + func (r Results) Sort() Results + func (r Results) Swap(i, j int) + type Target struct + Body []byte + File string + Header headers + Method string + URL string + func (t *Target) Request() (*http.Request, error) + type Targets []Target + func NewTargets(lines []string, body []byte, header http.Header) (Targets, error) + func NewTargetsFrom(source io.Reader, body []byte, header http.Header) (Targets, error) + func (t Targets) Shuffle(seed int64)