package
0.0.3
Repository: https://github.com/ipfs/go-protocolnetwork.git
Documentation: pkg.go.dev

# Functions

New creates a new PeerManager, given a context and a PeerHandlerFactory.
OnPeerAddedHook specifies a hook to run when a peer handler is created.
OnPeerRemovedHook specifies a hook to run when a peer handler is created.

# Structs

PeerManager manages a pool of handlers on behalf of connected peers.

# Type aliases

Option configures the PeerManager.
PeerAddedHook is called any time a new peer handler is created.
PeerHandlerFactory provides a function that will create a PeerHandler.
PeerRemovedHook is called when a peer handler will no longer be tracked.