blockservice

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 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 BlockServiceSubmodule

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

	Dag *dag.DAG
}

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

func NewBlockserviceSubmodule

func NewBlockserviceSubmodule(ctx context.Context, blockstore *blockstore.BlockstoreSubmodule, network *network.NetworkSubmodule) (*BlockServiceSubmodule, error)

NewBlockserviceSubmodule creates a new block service submodule.

func (*BlockServiceSubmodule) API

func (blockService *BlockServiceSubmodule) API() apiface.IBlockService

func (*BlockServiceSubmodule) V0API added in v0.9.7

func (blockService *BlockServiceSubmodule) V0API() apiface.IBlockService

Jump to

Keyboard shortcuts

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