libp2p

package module
v0.29.1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: Apache-2.0 Imports: 32 Imported by: 2

Documentation

Index

Constants

View Source
const (
	//nolint:revive // var-naming: renaming this exported const is an API break; see follow-up
	PeerId = "peer"
	//nolint:revive // var-naming: renaming this exported const is an API break; see follow-up
	ProtocolId = "protocol"
)
View Source
const P2PCommunicationType = "libp2p"

P2PCommunicationType is a string identifier for the libp2p implementation of the p2p comm stack.

Variables

This section is empty.

Functions

func NewConfig

func NewConfig(cs configService) *config

func NewHostGeneratorProvider

func NewHostGeneratorProvider(config libp2pConfig, provider viewmetrics.Provider) *hostGeneratorProvider

Types

type PKIDSynthesizer

type PKIDSynthesizer struct{}

func (PKIDSynthesizer) PublicKeyID

func (PKIDSynthesizer) PublicKeyID(key any) ([]byte, error)

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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