quickDown

command module
v0.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 11, 2025 License: GPL-2.0 Imports: 9 Imported by: 0

README

quickDown

quick http downloader

机理

 http协议的分片下载  go语言的多协程并发

使用方法

quickDown -b 8 -t 128 https://xxx.xxx.com/xxxx.zip

  • -o 指定文件名,如果不指定文件名,优先使用应答头中指定的文件名,其次使用url中的文件名
  • -b 指定分片大小,以段为单位,每段64K
  • -t 指定协程数,最大128个协程

编译

 go install quickDown

任务描述格式

header
行号 内容
0 远端URL
1 文件名
body
64bit 64bit
数组长度 0
start_offset end_offset

end_offset = start_offset + lehgth

example:

{ stsrt: 4, end: 7 } => [4, 5, 6]

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL