Documentation ¶
Index ¶
- type InstrumentedOpP2PClient
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InstrumentedOpP2PClient ¶
type InstrumentedOpP2PClient struct {
// contains filtered or unexported fields
}
func (*InstrumentedOpP2PClient) ConnectPeer ¶
func (i *InstrumentedOpP2PClient) ConnectPeer(ctx context.Context, addr string) error
func (*InstrumentedOpP2PClient) DisconnectPeer ¶
func (*InstrumentedOpP2PClient) ProtectPeer ¶
func (*InstrumentedOpP2PClient) UnblockPeer ¶
func (*InstrumentedOpP2PClient) UnprotectPeer ¶
Click to show internal directories.
Click to hide internal directories.