Files
kopia/snapshot/upload_progress.go
2018-03-14 18:22:50 -07:00

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)