progressbar

package
v1.54.1 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitProgressBarIfPossible

func InitProgressBarIfPossible() (ioUtils.ProgressMgr, *os.File, error)

Initializes progress bar if possible (all conditions in 'shouldInitProgressBar' are met). Creates a log file and sets the Logger to it. Caller responsible to close the file. Returns nil, nil, err if failed.

Types

type ReaderProgressBar added in v1.42.0

type ReaderProgressBar struct {
	Id int
	// contains filtered or unexported fields
}

func (*ReaderProgressBar) Abort added in v1.42.0

func (p *ReaderProgressBar) Abort()

Abort aborts a progress indicator. Called on both successful and unsuccessful operations

func (*ReaderProgressBar) ActionWithProgress added in v1.42.0

func (p *ReaderProgressBar) ActionWithProgress(reader io.Reader) (results io.Reader)

Used to update the progress bar progress.

func (*ReaderProgressBar) GetId added in v1.42.0

func (p *ReaderProgressBar) GetId() (Id int)

GetId Returns the ProgressBar ID

type SimpleProgressBar added in v1.42.0

type SimpleProgressBar struct {
	Id int
	// contains filtered or unexported fields
}

func (*SimpleProgressBar) Abort added in v1.42.0

func (p *SimpleProgressBar) Abort()

Abort aborts a progress indicator. Called on both successful and unsuccessful operations

func (*SimpleProgressBar) ActionWithProgress added in v1.42.0

func (p *SimpleProgressBar) ActionWithProgress(reader io.Reader) (results io.Reader)

Usesd to update the progress bar progress.

func (*SimpleProgressBar) GetId added in v1.42.0

func (p *SimpleProgressBar) GetId() (Id int)

GetId Returns the ProgressBar ID

Jump to

Keyboard shortcuts

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