webapi: Live download implementation.

This commit is contained in:
Kleissner
2021-12-14 01:27:04 +01:00
parent b3f1293f3c
commit ced9574e5e
2 changed files with 63 additions and 17 deletions

View File

@@ -15,6 +15,7 @@ import (
"sync"
"time"
"github.com/PeernetOfficial/core"
"github.com/google/uuid"
)
@@ -199,6 +200,9 @@ type downloadInfo struct {
Swarm struct { // Information about the swarm. Only valid for status >= DownloadActive.
CountPeers uint64 // Count of peers participating in the swarm.
}
// live connections, to be changed
peer *core.PeerInfo
}
var (