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