head

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2021 License: Apache-2.0, MIT, Apache-2.0, + 1 more Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BootstrapStatus

type BootstrapStatus struct {
	Done bool
	Err  error
}

BootstrapStatus describes the status of connecting to a bootstrap node.

type Head struct {
	Host      host.Host
	Datastore datastore.Datastore
	Routing   routing.Routing
}

Head is a container for ipfs/libp2p components used by a Hydra head.

func NewHead

func NewHead(ctx context.Context, options ...opts.Option) (*Head, chan BootstrapStatus, error)

NewHead constructs a new Hydra Booster head node

func (*Head) AddProvider

func (s *Head) AddProvider(ctx context.Context, c cid.Cid, id peer.ID)

AddProvider adds the given provider to the datastore

func (*Head) RoutingTable

func (s *Head) RoutingTable() *kbucket.RoutingTable

RoutingTable returns the underlying RoutingTable for this head

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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