Versions in this module Expand all Collapse all v5 v5.4.0 Dec 19, 2020 v5.3.0 Aug 11, 2020 Changes in this version type Decorator + func Current(unit int, format string, wcc ...WC) Decorator + func CurrentKibiByte(format string, wcc ...WC) Decorator + func CurrentKiloByte(format string, wcc ...WC) Decorator + func CurrentNoUnit(format string, wcc ...WC) Decorator + func InvertedCurrent(unit int, format string, wcc ...WC) Decorator + func InvertedCurrentKibiByte(format string, wcc ...WC) Decorator + func InvertedCurrentKiloByte(format string, wcc ...WC) Decorator + func InvertedCurrentNoUnit(format string, wcc ...WC) Decorator + func Total(unit int, format string, wcc ...WC) Decorator + func TotalKibiByte(format string, wcc ...WC) Decorator + func TotalKiloByte(format string, wcc ...WC) Decorator + func TotalNoUnit(format string, wcc ...WC) Decorator v5.2.4 Jul 17, 2020 v5.2.3 Jul 7, 2020 v5.2.2 May 23, 2020 v5.2.0 May 20, 2020 Changes in this version type Statistics + Refill int64 v5.1.0 May 18, 2020 Changes in this version + type DecorFunc func(Statistics) string type Statistics + AvailableWidth int v5.0.4 Apr 24, 2020 v5.0.3 Mar 16, 2020 v5.0.2 Mar 6, 2020 Changes in this version + const DSyncSpace + const DSyncSpaceR + const DSyncWidth + const DSyncWidthR + const DextraSpace + const DidentRight + const UnitKB + const UnitKiB + var WCSyncSpace = WC + var WCSyncSpaceR = WC + var WCSyncWidth = WC + var WCSyncWidthR = WC + func FmtAsSpeed(input fmt.Formatter) fmt.Formatter + func NewMedian() ewma.MovingAverage + func NewThreadSafeMovingAverage(average ewma.MovingAverage) ewma.MovingAverage + type AverageDecorator interface + AverageAdjust func(time.Time) + type Configurator interface + GetConf func() WC + SetConf func(WC) + type Decorator interface + Decor func(*Statistics) string + func Any(f func(*Statistics) string, wcc ...WC) Decorator + func AverageETA(style TimeStyle, wcc ...WC) Decorator + func AverageSpeed(unit int, format string, wcc ...WC) Decorator + func Counters(unit int, pairFmt string, wcc ...WC) Decorator + func CountersKibiByte(pairFmt string, wcc ...WC) Decorator + func CountersKiloByte(pairFmt string, wcc ...WC) Decorator + func CountersNoUnit(pairFmt string, wcc ...WC) Decorator + func Elapsed(style TimeStyle, wcc ...WC) Decorator + func EwmaETA(style TimeStyle, age float64, wcc ...WC) Decorator + func EwmaSpeed(unit int, format string, age float64, wcc ...WC) Decorator + func Merge(decorator Decorator, placeholders ...WC) Decorator + func MovingAverageETA(style TimeStyle, average ewma.MovingAverage, normalizer TimeNormalizer, ...) Decorator + func MovingAverageSpeed(unit int, format string, average ewma.MovingAverage, wcc ...WC) Decorator + func Name(str string, wcc ...WC) Decorator + func NewAverageETA(style TimeStyle, startTime time.Time, normalizer TimeNormalizer, wcc ...WC) Decorator + func NewAverageSpeed(unit int, format string, startTime time.Time, wcc ...WC) Decorator + func NewElapsed(style TimeStyle, startTime time.Time, wcc ...WC) Decorator + func NewPercentage(format string, wcc ...WC) Decorator + func OnComplete(decorator Decorator, message string) Decorator + func Percentage(wcc ...WC) Decorator + func Spinner(frames []string, wcc ...WC) Decorator + type EwmaDecorator interface + EwmaUpdate func(int64, time.Duration) + type ShutdownListener interface + Shutdown func() + type SizeB1000 int64 + func (i SizeB1000) String() string + func (self SizeB1000) Format(st fmt.State, verb rune) + type SizeB1024 int64 + func (i SizeB1024) String() string + func (self SizeB1024) Format(st fmt.State, verb rune) + type Statistics struct + Completed bool + Current int64 + ID int + Total int64 + type Synchronizer interface + Sync func() (chan int, bool) + type TimeNormalizer interface + Normalize func(time.Duration) time.Duration + func FixedIntervalTimeNormalizer(updInterval int) TimeNormalizer + func MaxTolerateTimeNormalizer(maxTolerate time.Duration) TimeNormalizer + type TimeNormalizerFunc func(time.Duration) time.Duration + func (f TimeNormalizerFunc) Normalize(src time.Duration) time.Duration + type TimeStyle int + const ET_STYLE_GO + const ET_STYLE_HHMM + const ET_STYLE_HHMMSS + const ET_STYLE_MMSS + type WC struct + C int + W int + func (wc *WC) FormatMsg(msg string) string + func (wc *WC) GetConf() WC + func (wc *WC) Init() WC + func (wc *WC) SetConf(conf WC) + func (wc *WC) Sync() (chan int, bool) + type Wrapper interface + Base func() Decorator Other modules containing this package github.com/vbauerster/mpb github.com/vbauerster/mpb/v4 github.com/vbauerster/mpb/v6 github.com/vbauerster/mpb/v7 github.com/vbauerster/mpb/v8