Versions in this module Expand all Collapse all v1 v1.41.2 Mar 27, 2022 Changes in this version + type AnnounceRequest struct + Action string + Downloaded int64 + Event string + InfoHash string + Left int64 + Numwant int + Offers []Offer + PeerID string + Uploaded int64 + type AnnounceResponse struct + Action string + Answer *webrtc.SessionDescription + Complete *int + Incomplete *int + InfoHash string + Interval *int + Offer *webrtc.SessionDescription + OfferID string + PeerID string + ToPeerID string + type DataChannelContext struct + InfoHash [20]byte + Local webrtc.SessionDescription + LocalOffered bool + OfferId string + Remote webrtc.SessionDescription + func (me *DataChannelContext) GetSelectedIceCandidatePair() (*webrtc.ICECandidatePair, error) + type Offer struct + Offer webrtc.SessionDescription + OfferID string + type TrackerClient struct + Dialer *websocket.Dialer + GetAnnounceRequest func(_ tracker.AnnounceEvent, infoHash [20]byte) (tracker.AnnounceRequest, error) + Logger log.Logger + OnConn onDataChannelOpen + PeerId [20]byte + Url string + func (me *TrackerClient) Stats() TrackerClientStats + func (tc *TrackerClient) Announce(event tracker.AnnounceEvent, infoHash [20]byte) error + func (tc *TrackerClient) Close() error + func (tc *TrackerClient) Start(onStop func(error)) + type TrackerClientStats struct + ConvertedInboundConns int64 + ConvertedOutboundConns int64 + Dials int64