2016-12-07 03:29:18 +00:00
|
|
|
package progress
|
|
|
|
|
|
|
|
func Noop() Meter {
|
|
|
|
return &nonMeter{}
|
|
|
|
}
|
|
|
|
|
|
|
|
type nonMeter struct{}
|
|
|
|
|
|
|
|
func (m *nonMeter) Start() {}
|
2016-12-14 22:16:59 +00:00
|
|
|
func (m *nonMeter) Add(size int64) {}
|
2016-12-07 03:29:18 +00:00
|
|
|
func (m *nonMeter) Skip(size int64) {}
|
|
|
|
func (m *nonMeter) StartTransfer(name string) {}
|
|
|
|
func (m *nonMeter) TransferBytes(direction, name string, read, total int64, current int) {}
|
|
|
|
func (m *nonMeter) FinishTransfer(name string) {}
|
|
|
|
func (m *nonMeter) Finish() {}
|