mirror of
https://github.com/kopia/kopia.git
synced 2026-03-13 11:46:55 -04:00
19 lines
471 B
Go
19 lines
471 B
Go
package snapshot
|
|
|
|
// UploadProgress is invoked by by uploader to report status of file and directory uploads.
|
|
type UploadProgress interface {
|
|
Progress(path string, pathCompleted, pathTotal int64, stats *Stats)
|
|
UploadFinished()
|
|
}
|
|
|
|
type nullUploadProgress struct {
|
|
}
|
|
|
|
func (p *nullUploadProgress) Progress(path string, pathCompleted, pathTotal int64, stats *Stats) {
|
|
}
|
|
|
|
func (p *nullUploadProgress) UploadFinished() {
|
|
}
|
|
|
|
var _ UploadProgress = (*nullUploadProgress)(nil)
|