p2p

package
v0.0.0-...-de91b87 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Communication

type Communication struct {
	peer_mgr.OrderPeerManager

	SendMsgChan chan *message.SendMsgChan
	// contains filtered or unexported fields
}

Communication use p2p to send messages among all the TSS nodes

func NewCommunication

func NewCommunication(peerMgr peer_mgr.OrderPeerManager, logger logrus.FieldLogger) (*Communication, error)

NewCommunication create a new instance of Communication

func (*Communication) ProcessBroadcast

func (c *Communication) ProcessBroadcast()

func (*Communication) Start

func (c *Communication) Start()

Start will start the communication

func (*Communication) Stop

func (c *Communication) Stop() error

Stop communication

Jump to

Keyboard shortcuts

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