mirror of
https://github.com/kopia/kopia.git
synced 2026-03-13 03:36:34 -04:00
21 lines
539 B
Go
21 lines
539 B
Go
package upload
|
|
|
|
import "github.com/kopia/kopia/snapshot"
|
|
|
|
// Progress is invoked by by uploader to report status of file and directory uploads.
|
|
type Progress interface {
|
|
Progress(path string, numFiles int, pathCompleted, pathTotal int64, stats *snapshot.Stats)
|
|
UploadFinished()
|
|
}
|
|
|
|
type nullUploadProgress struct {
|
|
}
|
|
|
|
func (p *nullUploadProgress) Progress(path string, numFiles int, pathCompleted, pathTotal int64, stats *snapshot.Stats) {
|
|
}
|
|
|
|
func (p *nullUploadProgress) UploadFinished() {
|
|
}
|
|
|
|
var _ Progress = (*nullUploadProgress)(nil)
|