reporter

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2020 License: 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 HTTPStats

type HTTPStats struct {
	Start          time.Time
	StatusCodes    map[int]int
	Errors         int
	Responses      int
	ShownResponses int
	Count          int
	// contains filtered or unexported fields
}

HTTPStats collects statistics about several HTTP responses.

func (*HTTPStats) Report

func (h *HTTPStats) Report(current string) (res []string)

Report returns a report about the received HTTP status codes.

type Reporter

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

Reporter prints the Responses to a terminal.

func New

func New(term cli.Terminal) *Reporter

New returns a new reporter.

func (*Reporter) Display

func (r *Reporter) Display(ch <-chan response.Response, countChannel <-chan int) error

Display shows incoming Responses.

Jump to

Keyboard shortcuts

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