report

package
v2.6.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bar

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

Bar represents a progress bar

func NewBar

func NewBar(max, duration int) *Bar

NewBar creates a new progress bar

func (*Bar) Update

func (b *Bar) Update()

Update indicates to the progress bar that we receive another output, the bar will update its representation accordingly

type Output

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

Output is the handler for CVS output

func NewOutput

func NewOutput(fileName string) Output

NewOutput creates new Output handler

func (Output) Close

func (o Output) Close()

Close closes the CSV file

func (Output) Write

func (o Output) Write(response *client.Response)

Write appends the response to the output file

type Progress

type Progress interface {
	Update()
}

Progress defines the progress indicator interface used by stats collector to inform user of the execution progress

type Stats

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

Stats collects statistics about the results of the execution

func NewStats

func NewStats(nParallel int, progress Progress, outputFile string) *Stats

NewStats creates a new Stats

func (*Stats) PrintStats

func (s *Stats) PrintStats()

PrintStats displays the stats

func (*Stats) Update

func (s *Stats) Update(response *client.Response)

Update receives results and update the stats accordingly

Jump to

Keyboard shortcuts

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