feat: add download stats info (#323)

This commit is contained in:
Tracey Lesley authored and GitHub committed 2024-01-17 21:59:01 +08:00
1 parent cc0f61b527
commit 99f4e8c895
5 files changed
+33

No files matched your search

+9
View File
@@ -3,3 +3,12 @@ package bt
type ReqExtra struct {
Trackers []string `json:"trackers"`
}
// Stats for download
type Stats struct {
// bt stats
// health indicators of torrents, from large to small, ConnectedSeeders are also the key to the health of seed resources
TotalPeers int `json:"totalPeers"`
ActivePeers int `json:"activePeers"`
ConnectedSeeders int `json:"connectedSeeders"`
}
+6
View File
@@ -9,3 +9,9 @@ type ReqExtra struct {
type OptsExtra struct {
Connections int `json:"connections"`
}
// Stats for download
type Stats struct {
// http stats
// health indicators of http
}