autopeering

package
v1.0.0-alpha.16 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

func NewManager

func NewManager(maxPeers int, networkManager network.Manager, host host.Host, peerDB *network.DB, logger log.Logger) *Manager

NewManager creates a new autopeering manager.

func (*Manager) MaxNeighbors

func (m *Manager) MaxNeighbors() int

func (*Manager) Start

func (m *Manager) Start(ctx context.Context, networkID string) (err error)

Start starts the autopeering manager.

func (*Manager) Stop

func (m *Manager) Stop() error

Stop terminates internal background workers. Calling multiple times has no effect.

Jump to

Keyboard shortcuts

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