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 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 (*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.