Versions in this module Expand all Collapse all v0 v0.0.1 Nov 6, 2024 Changes in this version + type InstrumentedOpP2PClient struct + func New(ctx context.Context, config *config.Config, network string, nodeName string, ...) (*InstrumentedOpP2PClient, error) + func (i *InstrumentedOpP2PClient) ConnectPeer(ctx context.Context, addr string) error + func (i *InstrumentedOpP2PClient) DisconnectPeer(ctx context.Context, p peer.ID) error + func (i *InstrumentedOpP2PClient) PeerStats(ctx context.Context) (*opp2p.PeerStats, error) + func (i *InstrumentedOpP2PClient) Peers(ctx context.Context, connected bool) (*opp2p.PeerDump, error) + func (i *InstrumentedOpP2PClient) ProtectPeer(ctx context.Context, p peer.ID) error + func (i *InstrumentedOpP2PClient) Self(ctx context.Context) (*opp2p.PeerInfo, error) + func (i *InstrumentedOpP2PClient) UnblockPeer(ctx context.Context, p peer.ID) error + func (i *InstrumentedOpP2PClient) UnprotectPeer(ctx context.Context, p peer.ID) error