powergate: github.com/textileio/powergate/net/lotus Index | Files

package lotus

import "github.com/textileio/powergate/net/lotus"

Index

Package Files

module.go

type Module Uses

type Module struct {
    // contains filtered or unexported fields
}

Module exposes the filecoin wallet api.

func New Uses

func New(clientBuilder lotus.ClientBuilder, lr iplocation.LocationResolver) *Module

New creates a new net module.

func (*Module) ConnectPeer Uses

func (m *Module) ConnectPeer(ctx context.Context, addrInfo peer.AddrInfo) error

ConnectPeer implements ConnectPeer.

func (*Module) Connectedness Uses

func (m *Module) Connectedness(ctx context.Context, peerID peer.ID) (net.Connectedness, error)

Connectedness implements Connectedness.

func (*Module) DisconnectPeer Uses

func (m *Module) DisconnectPeer(ctx context.Context, peerID peer.ID) error

DisconnectPeer implements DisconnectPeer.

func (*Module) FindPeer Uses

func (m *Module) FindPeer(ctx context.Context, peerID peer.ID) (net.PeerInfo, error)

FindPeer implements FindPeer.

func (*Module) ListenAddr Uses

func (m *Module) ListenAddr(ctx context.Context) (peer.AddrInfo, error)

ListenAddr implements ListenAddr.

func (*Module) Peers Uses

func (m *Module) Peers(ctx context.Context) ([]net.PeerInfo, error)

Peers implements Peers.

Package lotus imports 8 packages (graph) and is imported by 3 packages. Updated 2020-09-21. Refresh now. Tools for package owners.