Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PeerInfo ¶
type PeerInfo struct {
// contains filtered or unexported fields
}
func New ¶
func New(tcpNode host.Host, peers []peer.ID, version string, lockHash []byte, gitHash string, sendFunc p2p.SendReceiveFunc, ) *PeerInfo
New returns a new peer info protocol instance.
func NewForT ¶
func NewForT(_ *testing.T, tcpNode host.Host, peers []peer.ID, version string, lockHash []byte, gitHash string, sendFunc p2p.SendReceiveFunc, registerHandler p2p.RegisterHandlerFunc, tickerProvider tickerProvider, nowFunc nowFunc, metricSubmitter metricSubmitter, ) *PeerInfo
NewForT returns a new peer info protocol instance for testing only.
Click to show internal directories.
Click to hide internal directories.