AmountReceiver comment upd
Vladimir Bauer
6 years ago
| 79 | 79 |
}
|
| 80 | 80 |
|
| 81 | 81 |
// AmountReceiver interface.
|
| 82 | |
// If decorator needs to receive increment amount, so this is the right
|
| 83 | |
// interface to implement.
|
|
82 |
// EWMA based decorators must implement this one.
|
| 84 | 83 |
type AmountReceiver interface {
|
| 85 | 84 |
NextAmount(int64, ...time.Duration)
|
| 86 | 85 |
}
|