Versions in this module Expand all Collapse all v0 v0.0.7 Sep 22, 2021 Changes in this version + type Host interface + AddDirectPeer func(dp ma.Multiaddr) + Blacklist func() blacklist.BlackList + CheckClosedConnWithErr func(conn network.Conn, err error) bool + ClearDirectPeers func() + ConnMgr func() mgr.ConnMgr + Context func() context.Context + Dial func(remoteAddr ma.Multiaddr) (network.Conn, error) + ID func() peer.ID + IsPeerSupportProtocol func(pid peer.ID, protocolID protocol.ID) bool + LocalAddresses func() []ma.Multiaddr + Notify func(notifiee Notifiee) + PeerProtocols func(protocolIDs []protocol.ID) ([]*PeerProtocols, error) + PeerStore func() store.PeerStore + PrivateKey func() crypto.PrivateKey + ProtocolMgr func() mgr.ProtocolManager + RegisterMsgPayloadHandler func(protocolID protocol.ID, handler handler.MsgPayloadHandler) error + SendMsg func(protocolID protocol.ID, receiverPID peer.ID, msgPayload []byte) error + UnregisterMsgPayloadHandler func(protocolID protocol.ID) error + type Notifiee interface + PeerConnected func(pid peer.ID) + PeerDisconnected func(pid peer.ID) + PeerProtocolSupported func(protocolID protocol.ID, pid peer.ID) + PeerProtocolUnsupported func(protocolID protocol.ID, pid peer.ID) + type NotifieeBundle struct + PeerConnectedFunc func(peer.ID) + PeerDisconnectedFunc func(peer.ID) + PeerProtocolSupportedFunc func(protocolID protocol.ID, pid peer.ID) + PeerProtocolUnsupportedFunc func(protocolID protocol.ID, pid peer.ID) + func (n *NotifieeBundle) PeerConnected(pid peer.ID) + func (n *NotifieeBundle) PeerDisconnected(pid peer.ID) + func (n *NotifieeBundle) PeerProtocolSupported(protocolID protocol.ID, pid peer.ID) + func (n *NotifieeBundle) PeerProtocolUnsupported(protocolID protocol.ID, pid peer.ID) + type PeerProtocols struct + PID peer.ID + Protocols []protocol.ID