node

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2022 License: MIT Imports: 41 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node struct {
	Dht    *dht.IpfsDHT
	FullRT *fullrt.FullRT
	Host   host.Host

	StorageDir string
	//Lmdb      *lmdb.Blockstore
	Datastore datastore.Batching

	Blockstore blockstore.Blockstore
	Bitswap    *bitswap.Bitswap
	Dagserv    format.DAGService

	Config       *ncfg.Config
	RemotedsServ dsccore.DataNodeServer
	GatewayServ  *http.Server
}

func Setup

func Setup(ctx context.Context, cfg *ncfg.Config, repoPath string) (*Node, error)

func (*Node) Close

func (n *Node) Close() (err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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