]> Sergey Matveev's repositories - btrtrc.git/blob - wstracker.go
Merge branch 'torrent-cli' into webtorrent
[btrtrc.git] / wstracker.go
1 package torrent
2
3 import (
4         "fmt"
5         "net/url"
6
7         "github.com/anacrolix/torrent/webtorrent"
8 )
9
10 type websocketTracker struct {
11         url url.URL
12         *webtorrent.Client
13 }
14
15 func (me websocketTracker) statusLine() string {
16         return fmt.Sprintf("%q", me.url.String())
17 }
18
19 func (me websocketTracker) URL() url.URL {
20         return me.url
21 }