raftsupport

package
v1.11.1 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2019 License: MIT Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterInfoReceiver

type ClusterInfoReceiver struct {
	// contains filtered or unexported fields
}

ClusterInfoReceiver is send p2p getClusterInfo to connected peers and receive p2p responses one of peers return successful response The first version will be simplified version. it send and receive one by one.

func (*ClusterInfoReceiver) ReceiveResp

func (br *ClusterInfoReceiver) ReceiveResp(msg p2pcommon.Message, msgBody p2pcommon.MessageBody) (ret bool)

ReceiveResp must be called just in read go routine

func (*ClusterInfoReceiver) StartGet

func (br *ClusterInfoReceiver) StartGet()

Jump to

Keyboard shortcuts

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