progresstest

package
v0.0.0-...-036eace Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2020 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Meter

type Meter struct {
	Labels   []string
	Totals   []float64
	Values   []float64
	Written  [][]byte
	Notices  []string
	Finishes int
}

Meter implements the progress.Meter interface for testing purposes

func (*Meter) Finished

func (p *Meter) Finished()

Finished finishes the progress display

func (*Meter) Notify

func (p *Meter) Notify(msg string)

Notify notifies the user of miscellaneous events

func (*Meter) Set

func (p *Meter) Set(value float64)

Set sets progress to the "current" step

func (*Meter) SetTotal

func (p *Meter) SetTotal(total float64)

SetTotal sets "total" steps needed

func (*Meter) Spin

func (p *Meter) Spin(label string)

Spin indicates indefinite activity by showing a spinner

func (*Meter) Start

func (p *Meter) Start(label string, total float64)

Start progress with max "total" steps

func (*Meter) Write

func (p *Meter) Write(bs []byte) (n int, err error)

Jump to

Keyboard shortcuts

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