FedP2P/wstracker.go

19 lines
249 B
Go
Raw Normal View History

2020-04-06 13:38:01 +08:00
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
}