godown

command module
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: May 30, 2022 License: MIT Imports: 5 Imported by: 0

README

GoDown

Go 语言多线程下载器

Goroutine Download For Golang

Go Go Report Card

NAME:
   godown - Goroutine Download For Golang

USAGE:
   godown [global options] command [command options] argument

VERSION:
   0.2.2

COMMANDS:
   download, d  download from server
   server, s    start static server
   help, h      Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --help, -h     show help (default: false)
   --version, -v  print the version (default: false)

download

多线程下载

默认 20 个并发请求,每个请求分块大小 10M

NAME:
   godown download - download from server

USAGE:
   godown download [command options] argument

OPTIONS:
   --poolSize value, -p value   pool size for the fetch (default: 20)
   --chunkSize value, -c value  chunk size for the fetch (default: 1048576)
   --help, -h                   show help (default: false)

server

静态服务器

默认监听 0.0.0.0:8080 ,下载根目录为当前目录, 支持文件上传,或者离线下载

NAME:
   godown server - start static server

USAGE:
   godown server [command options]

OPTIONS:
   --host value, -h value  server host (default: "0.0.0.0")
   --port value, -p value  server port (default: "8080")
   --root value, -r value  server root (default: ".")
   --path value            server path (default: "/")
   --list, -l              list server directory (default: false)

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package fetch for download, provide high performance download use Goroutine to parallel download, use WaitGroup to do concurrency control.
Package fetch for download, provide high performance download use Goroutine to parallel download, use WaitGroup to do concurrency control.
Package server for upload, provide server side service.
Package server for upload, provide server side service.

Jump to

Keyboard shortcuts

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