opp2p_client

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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 New

func New(ctx context.Context, config *config.Config, network string, nodeName string, rpcUrl string) (*InstrumentedOpP2PClient, error)

func (*InstrumentedOpP2PClient) ConnectPeer

func (i *InstrumentedOpP2PClient) ConnectPeer(ctx context.Context, addr string) error

func (*InstrumentedOpP2PClient) DisconnectPeer

func (i *InstrumentedOpP2PClient) DisconnectPeer(ctx context.Context, p peer.ID) error

func (*InstrumentedOpP2PClient) PeerStats

func (*InstrumentedOpP2PClient) Peers

func (i *InstrumentedOpP2PClient) Peers(ctx context.Context, connected bool) (*opp2p.PeerDump, error)

func (*InstrumentedOpP2PClient) ProtectPeer

func (i *InstrumentedOpP2PClient) ProtectPeer(ctx context.Context, p peer.ID) error

func (*InstrumentedOpP2PClient) Self

func (*InstrumentedOpP2PClient) UnblockPeer

func (i *InstrumentedOpP2PClient) UnblockPeer(ctx context.Context, p peer.ID) error

func (*InstrumentedOpP2PClient) UnprotectPeer

func (i *InstrumentedOpP2PClient) UnprotectPeer(ctx context.Context, p peer.ID) error

Jump to

Keyboard shortcuts

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