Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ChunkTempDir 保存分片文件的临时文件夹 ChunkTempDir = filepath.Join(os.TempDir(), `nging/chunk_temp`) // MergeSaveDir 分片文件合并后保存的临时文件夹 // 避免和最终的文件保存位置相同,上传后一般需要将合并后的文件转移(os.Rename)到最终保存位置 MergeSaveDir = filepath.Join(os.TempDir(), `nging/chunk_merged`) // TempLifetime 分片临时文件过期时间 TempLifetime = 24 * time.Hour // GCInterval 垃圾清理间隔时间 GCInterval = 48 * time.Hour )
Functions ¶
func ChunkUploader ¶
func ChunkUploader() uploadClient.ChunkUpload
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.