Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikubill committed Dec 21, 2021
1 parent 4667a88 commit 42abe84
Show file tree
Hide file tree
Showing 3 changed files with 232 additions and 6 deletions.
6 changes: 3 additions & 3 deletions apis/public/cowtransfer/upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ const (
beforeUpload = "https://cowtransfer.com/api/transfer/beforeupload"
uploadFinish = "https://cowtransfer.com/api/transfer/uploaded"
uploadComplete = "https://cowtransfer.com/api/transfer/complete"
initUpload = "https://upload-fog-cn-east-1.qiniup.com/buckets/cowtransfer-yz/objects/%s/uploads"
doUpload = "https://upload-fog-cn-east-1.qiniup.com/buckets/cowtransfer-yz/objects/%s/uploads/%s/%d"
finUpload = "https://upload-fog-cn-east-1.qiniup.com/buckets/cowtransfer-yz/objects/%s/uploads/%s"
initUpload = "https://upload.qiniup.com/buckets/cftransfer/objects/%s/uploads"
doUpload = "https://upload.qiniup.com/buckets/cftransfer/objects/%s/uploads/%s/%d"
finUpload = "https://upload.qiniup.com/buckets/cftransfer/objects/%s/uploads/%s"
)

func (b *cowTransfer) InitUpload(_ []string, sizes []int64) error {
Expand Down
9 changes: 6 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,19 @@ go 1.16

require (
github.com/VividCortex/ewma v1.2.0 // indirect
github.com/bketelsen/crypt v0.0.4 // indirect
github.com/cheggaaa/pb/v3 v3.0.8
github.com/fatih/color v1.13.0 // indirect
github.com/google/uuid v1.3.0
github.com/mattn/go-colorable v0.1.12 // indirect
github.com/mattn/go-runewidth v0.0.13 // indirect
github.com/mr-tron/base58 v1.2.0
github.com/orcaman/concurrent-map v0.0.0-20210501183033-44dafcb38ecc
github.com/spf13/cobra v1.2.1
golang.org/x/crypto v0.0.0-20210817164053-32db794688a5
golang.org/x/sys v0.0.0-20211123173158-ef496fb156ab // indirect
github.com/shurcooL/sanitized_anchor_name v1.0.0 // indirect
github.com/smartystreets/goconvey v1.6.4 // indirect
github.com/spf13/cobra v1.3.0
golang.org/x/crypto v0.0.0-20211215153901-e495a2d5b3d3
golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e // indirect
golang.org/x/text v0.3.7
golang.org/x/time v0.0.0-20211116232009-f0f3c7e86c11
)
Loading

0 comments on commit 42abe84

Please sign in to comment.