p2p

package
v2.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2024 License: LGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type P2P

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

func New

func New(
	communicator *comm.Communicator,
	privateKey *ecdsa.PrivateKey,
	instanceDir string,
	nat nat.Interface,
	version string,
	maxPeers int,
	listenPort int,
	listenAddr string,
	allowedPeers []*discover.Node,
	cachedPeers []*discover.Node,
	bootstrapNodes []*discover.Node,
) *P2P

func (*P2P) Communicator

func (p *P2P) Communicator() *comm.Communicator

func (*P2P) Enode

func (p *P2P) Enode() string

func (*P2P) Start

func (p *P2P) Start() error

func (*P2P) Stop

func (p *P2P) Stop()

Jump to

Keyboard shortcuts

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