Documentation
¶
Index ¶
Constants ¶
View Source
const ( ErrorParamsEmpty liberr.CodeError = iota + liberr.MinPkgNutsDB ErrorParamsMissing ErrorParamsMismatching ErrorBarNotInitialized )
Variables ¶
This section is empty.
Functions ¶
func GetDefaultMessageDone ¶
func GetDefaultMessageDone() string
func GetDefaultStyle ¶
func GetDefaultStyle() string
func IsCodeError ¶ added in v1.6.0
func IsCodeError() bool
func SetDefaultMessageDone ¶
func SetDefaultMessageDone(message string)
func SetDefaultStyle ¶
func SetDefaultStyle(style string)
Types ¶
type ProgressBar ¶
type ProgressBar interface {
GetMPB() *mpb.Progress
SetMaxThread(maxSimultaneous int)
SetContext(ctx context.Context)
UnicProcessInit()
UnicProcessWait() errors.Error
UnicProcessNewWorker() errors.Error
UnicProcessDeferWorker()
UnicProcessDefer()
NewBar(total int64, options ...mpb.BarOption) Bar
NewBarETA(name string, total int64, job string, parent Bar) Bar
NewBarCounter(name string, total int64, job string, parent Bar) Bar
NewBarKBits(name string, total int64, job string, parent Bar) Bar
NewBarSimpleETA(name string, total int64) Bar
NewBarSimpleCounter(name string, total int64) Bar
NewBarSimpleKBits(name string, total int64) Bar
}
func NewProgressBar ¶
func NewProgressBar(options ...mpb.ContainerOption) ProgressBar
func NewProgressBarWithContext ¶ added in v1.3.0
func NewProgressBarWithContext(ctx context.Context, options ...mpb.ContainerOption) ProgressBar
Click to show internal directories.
Click to hide internal directories.