libp2p

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2022 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