Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MessageProcesssor ¶
type MessageProcesssor struct { RequiredValue []byte // contains filtered or unexported fields }
MessageProcesssor -
func NewMessageProcessor ¶
func NewMessageProcessor(chanDone chan struct{}, requiredVal []byte) *MessageProcesssor
NewMessageProcessor -
func (*MessageProcesssor) IsInterfaceNil ¶
func (mp *MessageProcesssor) IsInterfaceNil() bool
IsInterfaceNil returns true if there is no value under the interface
func (*MessageProcesssor) ProcessReceivedMessage ¶
func (mp *MessageProcesssor) ProcessReceivedMessage(message p2p.MessageP2P, _ core.PeerID, _ p2p.MessageHandler) error
ProcessReceivedMessage -
func (*MessageProcesssor) WasDataReceived ¶
func (mp *MessageProcesssor) WasDataReceived() bool
WasDataReceived -
type SimpleMessageProcessor ¶
type SimpleMessageProcessor struct {
// contains filtered or unexported fields
}
SimpleMessageProcessor records the last received message
func (*SimpleMessageProcessor) GetLastMessage ¶
func (smp *SimpleMessageProcessor) GetLastMessage() []byte
GetLastMessage returns the last message received
func (*SimpleMessageProcessor) IsInterfaceNil ¶
func (smp *SimpleMessageProcessor) IsInterfaceNil() bool
IsInterfaceNil returns true if there is no value under the interface
func (*SimpleMessageProcessor) ProcessReceivedMessage ¶
func (smp *SimpleMessageProcessor) ProcessReceivedMessage(message p2p.MessageP2P, _ core.PeerID, _ p2p.MessageHandler) error
ProcessReceivedMessage records the message
Click to show internal directories.
Click to hide internal directories.