Documentation ¶
Index ¶
- type MockNet
- func (m *MockNet) Receive(msg network.ReceivedMessage)
- func (m *MockNet) ReceivedChannel() <-chan network.ReceivedMessage
- func (m *MockNet) ResetSentMessages(protocol string)
- func (m *MockNet) Send(msg network.OutputMessage, receivers []peer.ID) error
- func (m *MockNet) SentMessages(protocol string) []PeerMessage
- type PeerMessage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockNet ¶
type MockNet struct { MessageCh chan network.ReceivedMessage // contains filtered or unexported fields }
func NewMockNetwork ¶
func NewMockNetwork() *MockNet
func (*MockNet) Receive ¶
func (m *MockNet) Receive(msg network.ReceivedMessage)
func (*MockNet) ReceivedChannel ¶
func (m *MockNet) ReceivedChannel() <-chan network.ReceivedMessage
func (*MockNet) ResetSentMessages ¶
func (*MockNet) SentMessages ¶
func (m *MockNet) SentMessages(protocol string) []PeerMessage
type PeerMessage ¶
type PeerMessage struct { peer.ID network.OutputMessage }
Click to show internal directories.
Click to hide internal directories.