fchost

package
v0.0.0-...-be0f657 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FilecoinHost

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

FilecoinHost is a libp2p host connected to the FC network

func New

func New() (*FilecoinHost, error)

New returns a new FilecoinHost

func (*FilecoinHost) Addrs

func (fc *FilecoinHost) Addrs(pid peer.ID) []multiaddr.Multiaddr

func (*FilecoinHost) Bootstrap

func (fh *FilecoinHost) Bootstrap() error

Bootstrap connects to the bootstrap peers

func (*FilecoinHost) GetAgentVersion

func (fc *FilecoinHost) GetAgentVersion(pid peer.ID) string

func (*FilecoinHost) Ping

func (fc *FilecoinHost) Ping(ctx context.Context, pid peer.ID) bool

Jump to

Keyboard shortcuts

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