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