Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnnounceOpt ¶
type AnnounceRequest ¶
type AnnounceRequest = udp.AnnounceRequest
type AnnounceResponse ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (Client) Announce ¶
func (cl Client) Announce(ctx context.Context, ar AnnounceRequest, opt AnnounceOpt) (ret AnnounceResponse, err error)
type HttpResponse ¶
type HttpResponse struct { FailureReason string `bencode:"failure reason"` Interval int32 `bencode:"interval"` TrackerId string `bencode:"tracker id"` Complete int32 `bencode:"complete"` Incomplete int32 `bencode:"incomplete"` Peers Peers `bencode:"peers"` // BEP 7 Peers6 krpc.CompactIPv6NodeAddrs `bencode:"peers6"` }
type NewClientOpts ¶
type Peer ¶
func (*Peer) FromDictInterface ¶
Set from the non-compact form in BEP 3.
Click to show internal directories.
Click to hide internal directories.