diff --git a/CONTRIBUTORS b/CONTRIBUTORS index c591b215e..a083a8df1 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -85,6 +85,7 @@ zhouhaibing089 zhoulin xie zou sheng zousheng +ZouYu zuozheng.hzz 也行 宋文杰 diff --git a/docs/api_reference/apis.md b/docs/api_reference/apis.md index c764e2f7a..e86657af3 100644 --- a/docs/api_reference/apis.md +++ b/docs/api_reference/apis.md @@ -735,6 +735,11 @@ Arch, Version, BuildDate, and GitCommit. ## Definitions + +### CdnSource +*Type* : enum (supernode, source) + + ### DfGetTask A download process initiated by dfget or other clients. @@ -962,6 +967,7 @@ response get from task creation request. |Name|Description|Schema| |---|---|---| |**ID**
*optional*|ID of the created task.|string| +|**cdnSource**
*optional*||[CdnSource](#cdnsource)| |**fileLength**
*optional*|The length of the file dfget requests to download in bytes.|integer (int64)| |**pieceSize**
*optional*|The size of pieces which is calculated as per the following strategy
1. If file's total size is less than 200MB, then the piece size is 4MB by default.
2. Otherwise, it equals to the smaller value between totalSize/100MB + 2 MB and 15MB.|integer (int32)| diff --git a/docs/cli_reference/supernode.md b/docs/cli_reference/supernode.md index 012c91a82..4b6c6b5ac 100644 --- a/docs/cli_reference/supernode.md +++ b/docs/cli_reference/supernode.md @@ -16,6 +16,7 @@ supernode [flags] ``` --advertise-ip string the supernode ip is the ip we advertise to other peers in the p2p-network + --cdn-pattern string cdn pattern, must be in ["local", "source"]. Default: local (default "local") --config string the path of supernode's configuration file (default "/etc/dragonfly/supernode.yml") -D, --debug switch daemon log level to DEBUG mode --down-limit int download limit for supernode to serve download tasks (default 4)