better godoc
Vladimir Bauer
8 years ago
| 51 | 51 | } |
| 52 | 52 | |
| 53 | 53 | // 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 | // | |
| 55 | 57 | // All decorators in this package implement this interface. |
| 56 | 58 | type Decorator interface { |
| 57 | 59 | Decor(*Statistics, chan<- int, <-chan int) string |
| 242 | 244 | } |
| 243 | 245 | |
| 244 | 246 | // 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) | |
| 247 | 250 | type EwmaETA struct { |
| 248 | 251 | ewma.MovingAverage |
| 249 | 252 | StartBlockCh chan time.Time |