requestHandlers

package
v1.0.56 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2019 License: GPL-3.0 Imports: 7 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,
	shardHdrRequestTopic string,
	metaHdrRequestTopic string,
	txRequestTopic string,
	scrRequestTopic string,
	mbRequestTopic string,
	maxTxsToRequest int,
) (*resolverRequestHandler, error)

NewMetaResolverRequestHandler creates a requestHandler interface implementation with request functions

func NewShardResolverRequestHandler

func NewShardResolverRequestHandler(
	finder dataRetriever.ResolversFinder,
	requestedItemsHandler dataRetriever.RequestedItemsHandler,
	txRequestTopic string,
	scrRequestTopic string,
	rewardTxRequestTopic string,
	mbRequestTopic string,
	shardHdrRequestTopic string,
	metaHdrRequestTopic string,
	maxTxsToRequest int,
) (*resolverRequestHandler, error)

NewShardResolverRequestHandler creates a requestHandler interface implementation with request functions

Types

type HashSliceResolver

type HashSliceResolver interface {
	RequestDataFromHashArray(hashes [][]byte) 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