]> Sergey Matveev's repositories - btrtrc.git/blobdiff - tracker/client.go
Support scraping from HTTP trackers
[btrtrc.git] / tracker / client.go
index 1aaf25611964cb26f5b2c032ea106af86d29c33c..3b7e2aba36b54b6f09c75a43791bf671811a3f3a 100644 (file)
@@ -9,10 +9,12 @@ import (
 
        trHttp "github.com/anacrolix/torrent/tracker/http"
        "github.com/anacrolix/torrent/tracker/udp"
+       "github.com/anacrolix/torrent/types/infohash"
 )
 
 type Client interface {
        Announce(context.Context, AnnounceRequest, AnnounceOpt) (AnnounceResponse, error)
+       Scrape(ctx context.Context, ihs []infohash.T) (out udp.ScrapeResponse, err error)
        Close() error
 }