test

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NetworkManager

type NetworkManager struct {
	module.NetworkManager

	ID module.PeerID
	// contains filtered or unexported fields
}

func NewNetworkManager

func NewNetworkManager() *NetworkManager

func (*NetworkManager) GetPeers

func (nm *NetworkManager) GetPeers() []module.PeerID

func (*NetworkManager) Join

func (nm *NetworkManager) Join(nm2 *NetworkManager)

func (*NetworkManager) RegisterReactor

func (nm *NetworkManager) RegisterReactor(name string, pi module.ProtocolInfo, reactor module.Reactor, piList []module.ProtocolInfo, priority uint8, policy module.NotRegisteredProtocolPolicy) (module.ProtocolHandler, error)

func (*NetworkManager) RegisterReactorForStreams

func (nm *NetworkManager) RegisterReactorForStreams(name string, pi module.ProtocolInfo, reactor module.Reactor, piList []module.ProtocolInfo, priority uint8, policy module.NotRegisteredProtocolPolicy) (module.ProtocolHandler, error)

Jump to

Keyboard shortcuts

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