command
module
Version:
v0.0.0-...-4d179a5
Opens a new window with list of versions in this module.
Published: Dec 18, 2021
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
goget
"goget" is a golang project that could be used for file downloading management
Features:
- Support http/ftp protocol
- Multi-job management(status/progress query, stop/start control)
- Multi-task(like thread,but actually goroutine) downloading for single job
- Job resuming from break-point
Howto
build
go get github.com/garryfan2013/goget
cd $GOPATH/src/garryfan2013/goget
go build
cd ./cli
go build
Server daemon
./goget
CLI
list all jobs
./cli -L
list single job
./cli -l JOB_ID
Add a job, this command succeeds will output the JOB_ID
./cli -a URL -c TASK_COUNT -o SAVE_PATH -u USERNAME -p PASSWD
Start a job
./cli -s JOB_ID
Stop a job
./cli -S JOB_OD
Delete a job
./cli -d JOB_ID
Todo
- Provide web interface for convinient management
- Dynamically adjust task count according to statistics
- Summary some golang specified knowledge and skill
Special thanks
- RPC package - grpc
- Ftp client package
- Simple kv store - boltDB
- Uuuid package - go.uuid
- Router package - gorilla/mux
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.