feat: add progress for task

This commit is contained in:
Noah Hsu
2022-06-18 20:06:45 +08:00
parent 6ad2cf2003
commit adf0178bb7
4 changed files with 29 additions and 25 deletions

View File

@ -53,4 +53,4 @@ type Writer interface {
Put(ctx context.Context, parentDir model.Obj, stream model.FileStreamer, up UpdateProgress) error
}
type UpdateProgress func(percentage float64)
type UpdateProgress func(percentage int)