Feat: async monitor OneDrive resume upload progress

This commit is contained in:
HFO4
2020-01-21 11:49:46 +08:00
parent dd5f6e3d25
commit 6aee31341f
8 changed files with 321 additions and 59 deletions

View File

@ -8,6 +8,7 @@ import (
"github.com/HFO4/cloudreve/models"
"github.com/HFO4/cloudreve/pkg/auth"
"github.com/HFO4/cloudreve/pkg/cache"
"github.com/HFO4/cloudreve/pkg/filesystem/driver/onedrive"
"github.com/HFO4/cloudreve/pkg/filesystem/driver/oss"
"github.com/HFO4/cloudreve/pkg/filesystem/driver/upyun"
"github.com/HFO4/cloudreve/pkg/serializer"
@ -286,6 +287,9 @@ func OneDriveCallbackAuth() gin.HandlerFunc {
return
}
// 发送回调结束信号
onedrive.FinishCallback(c.Param("key"))
c.Next()
}
}