Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Transport ¶
type Transport struct {
// contains filtered or unexported fields
}
Transport for UDP tracker implementation.
func NewTransport ¶
NewTransport returns a new UDP tracker transport.
type UDPTracker ¶
type UDPTracker struct {
// contains filtered or unexported fields
}
UDPTracker is a torrent tracker that speaks UDP.
func New ¶
func New(rawURL string, u *url.URL, t *Transport) *UDPTracker
New returns a new UDPTracker.
func (*UDPTracker) Announce ¶
func (t *UDPTracker) Announce(ctx context.Context, req tracker.AnnounceRequest) (*tracker.AnnounceResponse, error)
Announce the torrent to UDP tracker.
Click to show internal directories.
Click to hide internal directories.