nodeSym

package
v0.2.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 20, 2023 License: MIT Imports: 5 Imported by: 1

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
}
View Source
var SendCommand = func(id uint32, data *byte, dataSize uint32, responseSize *uint32) (error errno.Error) {
	return 0
}
View Source
var SendCommandTo = func(id uint32, cidBuf *byte, data *byte, dataSize uint32, responseSize *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)

func MockNew

func MockNew(testProtocol, testCommand string, testId uint32)

Types

type MockData

type MockData struct {
	Protocol        string
	Command         string
	CommandId       uint32
	SendResponse    []byte
	SendTo          cid.Cid
	SentData        []byte
	ListenHash      string
	ListenProtocol  string
	DiscoverMax     uint32
	DiscoverTimeout uint32
	DiscoverId      uint32
	Peers           []cid.Cid
}

func (MockData) Mock

func (_m MockData) Mock() *MockData

func (*MockData) MockSend

func (m *MockData) MockSend()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL