Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnnounceRequestPayload ¶
type AnnounceRequestPayload struct {
// contains filtered or unexported fields
}
type AnnounceResponsePayload ¶
type AnnounceResponsePayload struct {
// contains filtered or unexported fields
}
func (*AnnounceResponsePayload) Marshall ¶
func (payload *AnnounceResponsePayload) Marshall(buf []byte)
type ConnectRequestPayload ¶
type ConnectRequestPayload struct {
// contains filtered or unexported fields
}
func (*ConnectRequestPayload) Build ¶
func (payload *ConnectRequestPayload) Build() (buf []byte)
type ConnectResponsePayload ¶
type ConnectResponsePayload struct {
// contains filtered or unexported fields
}
func (*ConnectResponsePayload) Marshall ¶
func (payload *ConnectResponsePayload) Marshall(buf []byte)
type ScrapeRequestPayload ¶
type ScrapeRequestPayload struct {
// contains filtered or unexported fields
}
type Transaction ¶
type Transaction struct {
// contains filtered or unexported fields
}
func (Transaction) ID ¶
func (t Transaction) ID() TransactionID
func (*Transaction) New ¶
func (t *Transaction) New() TransactionID
func (*Transaction) Refresh ¶
func (t *Transaction) Refresh()
type TransactionID ¶
type TransactionID uint32
type UDPTrackerProtocol ¶
type UDPTrackerProtocol struct {
// contains filtered or unexported fields
}
func (*UDPTrackerProtocol) AnnounceToTracker ¶
func (*UDPTrackerProtocol) ConnectToTracker ¶
func (udp *UDPTrackerProtocol) ConnectToTracker(possibleURLs []*url.URL) error
func (*UDPTrackerProtocol) ScrapeTracker ¶
func (udp *UDPTrackerProtocol) ScrapeTracker(infoHash [][20]byte) error
type UnEqualActionError ¶
func (UnEqualActionError) Error ¶
func (e UnEqualActionError) Error() string
type UnEqualTransactionIDError ¶
type UnEqualTransactionIDError struct { Sent TransactionID Received TransactionID }
func (UnEqualTransactionIDError) Error ¶
func (e UnEqualTransactionIDError) Error() string
Click to show internal directories.
Click to hide internal directories.