Download.Peers() func added
This commit is contained in:
parent
052a899f60
commit
fd34e0a3c1
@ -23,4 +23,5 @@ type Download interface {
|
|||||||
DownloadAll()
|
DownloadAll()
|
||||||
Trackers() [][]tracker.Client
|
Trackers() [][]tracker.Client
|
||||||
Files() (ret []File)
|
Files() (ret []File)
|
||||||
|
Peers() map[peersKey]Peer
|
||||||
}
|
}
|
5
t.go
5
t.go
@ -101,4 +101,9 @@ func (t Torrent) Client() *Client {
|
|||||||
// Trackers returns torrent's trackers
|
// Trackers returns torrent's trackers
|
||||||
func (t Torrent) Trackers() [][]tracker.Client {
|
func (t Torrent) Trackers() [][]tracker.Client {
|
||||||
return t.torrent.Trackers
|
return t.torrent.Trackers
|
||||||
|
}
|
||||||
|
|
||||||
|
// Peers returns torrent's peers
|
||||||
|
func (t Torrent) Peers() map[peersKey]Peer {
|
||||||
|
return t.torrent.Peers
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user