Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Message ¶
type Message struct { Action string `json:"action"` InfoHash string `json:"info_hash"` // Announce msg Numwant int `json:"numwant,omitempty"` PeerId string `json:"peer_id,omitempty"` Offers []struct { OfferId string `json:"offer_id"` Offer struct { Type string `json:"type"` SDP string `json:"sdp"` } `json:"offer"` } `json:"offers,omitempty"` // Interval msg Interval int `json:"interval,omitempty"` Complete int `json:"complete,omitempty"` Incomplete int `json:"incomplete,omitempty"` // Offer msg OfferId string `json:"offer_id,omitempty"` Offer *struct { Type string `json:"type"` SDP string `json:"sdp"` } `json:"offer,omitempty"` // Answer msg ToPeerId string `json:"to_peer_id,omitempty"` Answer *struct { Type string `json:"type"` SDP string `json:"sdp"` } `json:"answer,omitempty"` }
Click to show internal directories.
Click to hide internal directories.