Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DiscoverPeers = func(id uint32, peersBuf *byte) (error errno.Error) {
return 0
}
View Source
var DiscoverPeersSize = func(max uint32, nsTimeout uint32, id *uint32, peersSize *uint32) (error errno.Error) {
return 0
}
View Source
var ListenToProtocol = func(protocol string, response *byte, responseSize uint32) (error errno.Error) {
return 0
}
View Source
var ListenToProtocolSize = func(protocol string, responseSize *uint32) (error errno.Error) {
return 0
}
View Source
var NewCommand = func(protocol, command string, id *uint32) (error errno.Error) {
return 0
}
View Source
var ReadCommandResponse = func(id uint32, data *byte, dataSize uint32) (error errno.Error) {
return 0
}
Functions ¶
func MockDiscover ¶ added in v0.2.4
func MockDiscover(expectedMax, expectedNSTimeout, discoverId uint32, peers []cid.Cid)
func MockListen ¶
func MockListen(listenHash, testProtocol string)
Types ¶
Click to show internal directories.
Click to hide internal directories.