Versions in this module Expand all Collapse all v0 v0.0.2 Mar 8, 2026 v0.0.1 Mar 8, 2026 Changes in this version + type AnnounceRequest struct + Compact bool + Downloaded int64 + Event Event + InfoHash dht.Key + Left int64 + NoPeerID bool + NumWant int + PeerID dht.Key + Port uint16 + Uploaded int64 + type AnnounceResponse struct + Complete int64 + ExternalIP net.IP + Incomplete int64 + Interval int64 + MinInterval int64 + Peers []Peer + TrackerID string + type Client struct + func NewClient(timeout time.Duration) *Client + func (c *Client) Announce(trackerURL string, req *AnnounceRequest) (*AnnounceResponse, error) + func (c *Client) Scrape(trackerURL string, req *ScrapeRequest) (*ScrapeResponse, error) + type Event string + const EventCompleted + const EventNone + const EventStarted + const EventStopped + type Peer struct + ID []byte + IP net.IP + Port uint16 + type PeerAddr struct + IP net.IP + Port uint16 + func (p *PeerAddr) Network() string + func (p *PeerAddr) String() string + type ScrapeRequest struct + InfoHashes []dht.Key + type ScrapeResponse struct + Files map[string]ScrapeStats + type ScrapeStats struct + Complete int64 + Downloaded int64 + Incomplete int64