libp2p

package
v1.17.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: Apache-2.0, MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FilPeerEvent

type FilPeerEvent struct {
	Type FilPeerEvtType
	ID   peer.ID
}

type FilPeerEvtType

type FilPeerEvtType int
const (
	AddFilPeerEvt FilPeerEvtType = iota
	RemoveFilPeerEvt
)

type PeerManager

type PeerManager interface {
	AddFilecoinPeer(ctx context.Context, p peer.ID)
	GetPeerLatency(ctx context.Context, p peer.ID) (time.Duration, bool)
	SetPeerLatency(ctx context.Context, p peer.ID, latency time.Duration)
	Disconnect(ctx context.Context, p peer.ID)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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