Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DuplicateChecker ¶ added in v0.8.1
type InfoMessage ¶
type InfoMessage struct { Peer Peer Value InfoMessageValue }
type InfoMessageValue ¶ added in v0.10.4
type InfoMessageValue interface {
// contains filtered or unexported methods
}
type InternalErr ¶ added in v0.10.4
type InternalErr struct {
Err error
}
type Parent ¶
type Parent struct { MessageCh chan ProtoMessage InfoCh chan InfoMessage SkipMessageList *messages.SkipMessageList }
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, error)
func (*PeerImpl) Connection ¶
func (a *PeerImpl) Connection() conn.Connection
func (*PeerImpl) RemoteAddr ¶
func (*PeerImpl) SendMessage ¶
SendMessage marshals provided message and sends it to its internal Remote.ToCh channel. It sends the error to internal Remote.ErrCh if Remote.ToCh is full. That notifies Handle to propagate this error to FMS through Parent.InfoCh.
type ProtoMessage ¶
type Remote ¶
type Remote struct { ToCh chan []byte FromCh chan *bytebufferpool.ByteBuffer ErrCh chan error }
Click to show internal directories.
Click to hide internal directories.