requestHandlers

package
v1.0.81 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2020 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMetaResolverRequestHandler

func NewMetaResolverRequestHandler(
	finder dataRetriever.ResolversFinder,
	requestedItemsHandler dataRetriever.RequestedItemsHandler,
	maxTxsToRequest int,
) (*resolverRequestHandler, error)

NewMetaResolverRequestHandler creates a requestHandler interface implementation with request functions

func NewShardResolverRequestHandler

func NewShardResolverRequestHandler(
	finder dataRetriever.ResolversFinder,
	requestedItemsHandler dataRetriever.RequestedItemsHandler,
	maxTxsToRequest int,
	shardID uint32,
) (*resolverRequestHandler, error)

NewShardResolverRequestHandler creates a requestHandler interface implementation with request functions

Types

type HashSliceResolver

type HashSliceResolver interface {
	RequestDataFromHashArray(hashes [][]byte, epoch uint32) error
	IsInterfaceNil() bool
}

HashSliceResolver can request multiple hashes at once

Jump to

Keyboard shortcuts

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