Codebase list golang-github-vbauerster-mpb / 81ae206
better godoc Vladimir Bauer 8 years ago
1 changed file(s) with 6 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
5151 }
5252
5353 // Decorator is an interface with one method:
54 // Decor(st *Statistics, widthAccumulator chan<- int, widthDistributor <-chan int) string
54 //
55 // Decor(st *Statistics, widthAccumulator chan<- int, widthDistributor <-chan int) string
56 //
5557 // All decorators in this package implement this interface.
5658 type Decorator interface {
5759 Decor(*Statistics, chan<- int, <-chan int) string
242244 }
243245
244246 // EwmaETA is a struct, which implements ewma based ETA decorator.
245 // Should not be used directly, use ETA(int, float64, chan time.Time, ...WC)
246 // func helper instead.
247 // Normally should not be used directly, use helper func instead:
248 //
249 // decor.ETA(int, float64, chan time.Time, ...decor.WC)
247250 type EwmaETA struct {
248251 ewma.MovingAverage
249252 StartBlockCh chan time.Time