entity.go 372 B

1234567891011121314151617
  1. package entity
  2. import "time"
  3. // RPC相关结构体
  4. type UploadArgs struct {
  5. Stream []byte // 客户端将文件数据传递过来
  6. Gzip bool //是否压缩
  7. BucketID string //桶id
  8. ObjectName string //对象名称
  9. }
  10. type Args struct {
  11. BucketID string //桶id
  12. ObjectName string //对象名称
  13. Timeout time.Duration //超时时间
  14. }