You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 20, 2024. It is now read-only.
|**500**|An unexpected server error occurred.|[Error](#error)|
577
610
578
611
@@ -858,6 +891,16 @@ The request is to report peer to supernode to keep alive.
858
891
|**port** <br>*optional*|when registering, dfget will setup one uploader process.<br>This one acts as a server for peer pulling tasks.<br>This port is which this server listens on. <br>**Minimum value** : `15000` <br>**Maximum value** : `65000`|integer (int32)|
859
892
860
893
894
+
<aname="heartbeatresponse"></a>
895
+
### HeartBeatResponse
896
+
897
+
|Name|Description|Schema|
898
+
|---|---|---|
899
+
|**needRegister** <br>*optional*|If peer do not register in supernode, set needRegister to be true, else set to be false.|boolean|
900
+
|**seedTaskIDs** <br>*optional*|The array of seed taskID which now are selected as seed for the peer. If peer have other seed file which<br>is not included in the array, these seed file should be weed out.|< string > array|
901
+
|**version** <br>*optional*|The version of supernode. If supernode restarts, version should be different, so dfdaemon could know<br>the restart of supernode.|string|
902
+
903
+
861
904
<aname="networkinfofetchrequest"></a>
862
905
### NetworkInfoFetchRequest
863
906
The request is to fetch p2p network info from supernode.
@@ -999,8 +1042,8 @@ Request option of creating a preheat task in supernode.
999
1042
|**filter** <br>*optional*|URL may contains some changeful query parameters such as authentication parameters. Dragonfly will<br>filter these parameter via 'filter'. The usage of it is that different URL may generate the same<br>download taskID.|string|
1000
1043
|**headers** <br>*optional*|If there is any authentication step of the remote server, the headers should contains authenticated information.<br>Dragonfly will sent request taking the headers to remote server.|< string, string > map|
1001
1044
|**identifier** <br>*optional*|This field is used for generating new downloading taskID to identify different downloading task of remote URL.|string|
1002
-
|**type** <br>*optional*|this must be image or file|string|
1003
-
|**url** <br>*optional*|the image or file location|string|
1045
+
|**type** <br>*required*|this must be image or file|enum (image, file)|
1046
+
|**url** <br>*required*|the image or file location <br>**Minimum length** : `3`|string|
1004
1047
1005
1048
1006
1049
<aname="preheatcreateresponse"></a>
@@ -1024,7 +1067,19 @@ task because that an image may have more than one layer.
1024
1067
|**ID** <br>*optional*|ID of preheat task.|string|
|**status** <br>*optional*|The status of preheat task.<br> WAITING -----> RUNNING -----> SUCCESS<br> \|--> FAILED<br>The initial status of a created preheat task is WAITING.<br>It's finished when a preheat task's status is FAILED or SUCCESS.<br>A finished preheat task's information can be queried within 24 hours.|enum (WAITING, RUNNING, FAILED, SUCCESS)|
1070
+
|**status** <br>*optional*|The status of preheat task.<br> WAITING -----> RUNNING -----> SUCCESS<br> \|--> FAILED<br>The initial status of a created preheat task is WAITING.<br>It's finished when a preheat task's status is FAILED or SUCCESS.<br>A finished preheat task's information can be queried within 24 hours.|[PreheatStatus](#preheatstatus)|
1071
+
1072
+
1073
+
<aname="preheatstatus"></a>
1074
+
### PreheatStatus
1075
+
The status of preheat task.
1076
+
WAITING -----> RUNNING -----> SUCCESS
1077
+
|--> FAILED
1078
+
The initial status of a created preheat task is WAITING.
1079
+
It's finished when a preheat task's status is FAILED or SUCCESS.
1080
+
A finished preheat task's information can be queried within 24 hours.
0 commit comments