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
Click to show internal directories.
Click to hide internal directories.