p2p

package
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// HandleHistName is the prefix of the per-packet serving time histograms.
	HandleHistName = "p2p/handle"
)
View Source
const MaxScore = 1000
View Source
const MinScore = 0

Variables

This section is empty.

Functions

func QualityAdjOnBroadcast added in v0.32.0

func QualityAdjOnBroadcast(current int) int

func QualityAdjOnNack added in v0.32.0

func QualityAdjOnNack(current int) int

func QualityAdjOnResponse added in v0.32.0

func QualityAdjOnResponse(current int) int

func QualityAdjOnTimeout added in v0.32.0

func QualityAdjOnTimeout(current int) int

Types

type Multiaddr added in v0.29.0

type Multiaddr = core.Multiaddr

Multiaddr aliases the Multiaddr type from github.com/libp2p/core

Refer to the docs on that type for more info.

type PeerID added in v0.29.0

type PeerID = core.PeerID

PeerID aliases the PeerID type from github.com/libp2p/core

Refer to the docs on that type for more info.

Directories

Path Synopsis
Package mock_p2p is a generated GoMock package.
Package mock_p2p is a generated GoMock package.
mocks
Package mock_protocol is a generated GoMock package.
Package mock_protocol is a generated GoMock package.

Jump to

Keyboard shortcuts

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