Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Encode ¶
func Encode(peerPacket PeerPacket) ([]byte, error)
Types ¶
type PeerInfo ¶
type PeerPacket ¶
func Decode ¶
func Decode(buff []byte) (peerPacket PeerPacket, err error)
func NewPeerPacket ¶
func NewPeerPacket(userId string) PeerPacket
Click to show internal directories.
Click to hide internal directories.