dagservice

package
v1.1.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2021 License: Apache-2.0, MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DagServiceSubmodule

type DagServiceSubmodule struct {
	// dagservice is a higher level interface for fetching data
	Blockservice bserv.BlockService

	Dag *dag.DAG
}

DagServiceSubmodule enhances the `Node` with networked key/value fetching capabilities. - `BlockService` is shared by chain/graphsync and piece/bitswap data

func NewDagserviceSubmodule

func NewDagserviceSubmodule(ctx context.Context, dagCfg dagConfig, network *network.NetworkSubmodule) (*DagServiceSubmodule, error)

NewDagserviceSubmodule creates a new block service submodule.

func (*DagServiceSubmodule) API

func (blockService *DagServiceSubmodule) API() apiface.IDagService

func (*DagServiceSubmodule) V0API

func (blockService *DagServiceSubmodule) V0API() apiface.IDagService

Jump to

Keyboard shortcuts

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