2
0
mirror of synced 2025-02-23 14:18:13 +00:00
torrent/wstracker.go
2020-04-06 15:38:01 +10:00

19 lines
249 B
Go

package torrent
import (
"fmt"
"net/url"
)
type websocketTracker struct {
url url.URL
}
func (me websocketTracker) statusLine() string {
return fmt.Sprintf("%q", me.url.String())
}
func (me websocketTracker) URL() url.URL {
return me.url
}