progress

package
v0.0.0-...-62a38f1 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: BSD-3-Clause, BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TerminalWidth

func TerminalWidth() (int, error)

func WriterCreator

func WriterCreator(h Handler, w io.WriteCloser) func(int64) io.WriteCloser

Types

type Bar

type Bar pb.ProgressBar

func (*Bar) Done

func (bp *Bar) Done()

func (*Bar) Reader

func (bp *Bar) Reader(reader io.ReadCloser, total int64) io.ReadCloser

func (*Bar) Step

func (bp *Bar) Step(fstring string, args ...interface{})

func (*Bar) Writer

func (bp *Bar) Writer(writer io.WriteCloser, total int64) io.WriteCloser

type Discard

type Discard struct{}

func (*Discard) Done

func (dp *Discard) Done()

func (*Discard) Reader

func (dp *Discard) Reader(reader io.ReadCloser, total int64) io.ReadCloser

func (*Discard) Step

func (dp *Discard) Step(fmt string, args ...interface{})

func (*Discard) Writer

func (dp *Discard) Writer(writer io.WriteCloser, total int64) io.WriteCloser

type Factory

type Factory func() Handler

type Handler

type Handler interface {
	Step(fmt string, args ...interface{})
	Reader(reader io.ReadCloser, total int64) io.ReadCloser
	Writer(writer io.WriteCloser, total int64) io.WriteCloser
	Done()
}

func NewBar

func NewBar() Handler

func NewDiscard

func NewDiscard() Handler

Jump to

Keyboard shortcuts

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