Documentation ¶
Index ¶
- type Module
- func (m *Module) ConnectPeer(ctx context.Context, addrInfo peer.AddrInfo) error
- func (m *Module) Connectedness(ctx context.Context, peerID peer.ID) (net.Connectedness, error)
- func (m *Module) DisconnectPeer(ctx context.Context, peerID peer.ID) error
- func (m *Module) FindPeer(ctx context.Context, peerID peer.ID) (net.PeerInfo, error)
- func (m *Module) ListenAddr(ctx context.Context) (peer.AddrInfo, error)
- func (m *Module) Peers(ctx context.Context) ([]net.PeerInfo, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Module ¶
type Module struct {
// contains filtered or unexported fields
}
Module exposes the filecoin wallet api.
func New ¶
func New(api *apistruct.FullNodeStruct, lr iplocation.LocationResolver) *Module
New creates a new net module.
func (*Module) ConnectPeer ¶
ConnectPeer implements ConnectPeer.
func (*Module) Connectedness ¶
Connectedness implements Connectedness.
func (*Module) DisconnectPeer ¶
DisconnectPeer implements DisconnectPeer.
func (*Module) ListenAddr ¶
ListenAddr implements ListenAddr.
Click to show internal directories.
Click to hide internal directories.