github.com/qjfoidnh/BaiduPCS-Go@v0.0.0-20231011165705-caa18a3765f3/requester/transfer/transfer.proto (about)

     1  syntax = "proto3";
     2  
     3  package transfer;
     4  
     5  // RangeGenMode 线程分配方式
     6  enum RangeGenMode {
     7      // RangeGenMode_Default 根据parallel平均生成
     8  	Default = 0;
     9  	// RangeGenMode_BlockSize 根据blockSize生成
    10  	BlockSize = 1;
    11  }
    12  
    13  //Range 请求范围
    14  message Range {
    15      int64 begin = 1;
    16      int64 end = 2;
    17  }
    18  
    19  // DownloadInstanceInfoExport 断点续传
    20  message DownloadInstanceInfoExport {
    21      RangeGenMode range_gen_mode = 1;
    22      int64 total_size = 2;  // 总大小
    23      int64 gen_begin = 3;
    24      int64 block_size = 4;
    25      repeated Range ranges = 5;
    26  }