Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDefaultMessageDone ¶
func GetDefaultMessageDone() string
func GetDefaultStyle ¶
func GetDefaultStyle() string
func SetDefaultMessageDone ¶
func SetDefaultMessageDone(message string)
func SetDefaultStyle ¶
func SetDefaultStyle(style string)
Types ¶
type ProgressBar ¶
type ProgressBar interface {
GetMPB() *mpb.Progress
GetContext() context.Context
SetContext(ctx context.Context)
GetCancel() context.CancelFunc
SetCancel(cancel context.CancelFunc)
SetSemaphoreOption(maxSimultaneous int, timeout time.Duration)
NewBar(parent context.Context, total int64, options ...mpb.BarOption) Bar
NewBarSimpleETA(name string) Bar
NewBarSimpleCounter(name string, total int64) Bar
}
func NewProgressBar ¶
func NewProgressBar(timeout time.Duration, deadline time.Time, parent context.Context, options ...mpb.ContainerOption) ProgressBar
Click to show internal directories.
Click to hide internal directories.