mirror of
https://github.com/ayflying/p2p.git
synced 2026-03-04 17:29:22 +00:00
增加上传与接收文件
This commit is contained in:
@@ -41,6 +41,8 @@ type (
|
||||
GetUrl(filePath string, defaultFile ...string) (url string)
|
||||
// GetPath 从文件访问 URL 中提取文件路径
|
||||
GetPath(url string) (filePath string)
|
||||
// GetCdnUrl 通过文件名,获取直连地址
|
||||
GetCdnUrl(file string) string
|
||||
// CopyObject 在指定存储桶内复制文件
|
||||
// bucketName 存储桶名称
|
||||
// dstStr 目标文件路径
|
||||
|
||||
Reference in New Issue
Block a user