requestHandlers

package
v1.0.36 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2019 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMetaResolverRequestHandler

func NewMetaResolverRequestHandler(
	finder dataRetriever.ResolversFinder,
	shardHdrRequestTopic string,
	metaHdrRequestTopic string,
	txRequestTopic string,
	scrRequestTopic string,
	mbRequestTopic string,
) (*resolverRequestHandler, error)

NewMetaResolverRequestHandler creates a requestHandler interface implementation with request functions

func NewShardResolverRequestHandler

func NewShardResolverRequestHandler(
	finder dataRetriever.ResolversFinder,
	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