Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Handle ¶
func Handle(params HandlerParams) error
for Handle doesn't matter outgoing or incoming Connection, it just send and receive messages
Types ¶
type DuplicateChecker ¶ added in v0.8.1
type HandlerParams ¶
type InfoMessage ¶
type InfoMessage struct { Peer Peer Value interface{} }
type Parent ¶
type Parent struct { MessageCh chan ProtoMessage InfoCh chan InfoMessage }
type PeerImpl ¶
type PeerImpl struct {
// contains filtered or unexported fields
}
func NewPeerImpl ¶
func NewPeerImpl(handshake proto.Handshake, conn conn.Connection, direction Direction, remote Remote, cancel context.CancelFunc) *PeerImpl
func (*PeerImpl) Connection ¶
func (a *PeerImpl) Connection() conn.Connection
func (*PeerImpl) RemoteAddr ¶
func (*PeerImpl) SendMessage ¶
type ProtoMessage ¶
Click to show internal directories.
Click to hide internal directories.