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(network string, bootstrap bool) (*FilecoinHost, error)
New returns a new FilecoinHost.
func (*FilecoinHost) Addrs ¶
func (fc *FilecoinHost) Addrs(pid peer.ID) []multiaddr.Multiaddr
Addrs returns the known multiaddresses known of a peer.
func (*FilecoinHost) Bootstrap ¶
func (fc *FilecoinHost) Bootstrap() error
Bootstrap connects to the bootstrap peers.
func (*FilecoinHost) GetAgentVersion ¶
func (fc *FilecoinHost) GetAgentVersion(pid peer.ID) string
GetAgentVersion returns the agent version of the peer, or empty otherwise.
Click to show internal directories.
Click to hide internal directories.