plugai_updsrv/deps/github.com/anacrolix/torrent/tracker/udp/scrape.go

14 lines
365 B
Go

package udp
type ScrapeRequest []InfoHash
type ScrapeResponse []ScrapeInfohashResult
type ScrapeInfohashResult struct {
// I'm not sure why the fields are named differently for HTTP scrapes.
// https://www.bittorrent.org/beps/bep_0048.html
Seeders int32 `bencode:"complete"`
Completed int32 `bencode:"downloaded"`
Leechers int32 `bencode:"incomplete"`
}