storagerequesters

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHeaderRequester

func NewHeaderRequester(arg ArgHeaderRequester) (*headerRequester, error)

NewHeaderRequester creates a new storage header resolver

func NewSliceRequester

func NewSliceRequester(arg ArgSliceRequester) (*sliceRequester, error)

NewSliceRequester is a wrapper over Requester that is specialized in sending requests

func NewTrieNodeRequester

func NewTrieNodeRequester(arg ArgTrieRequester) (*trieNodeRequester, error)

NewTrieNodeRequester returns a new trie node Requester instance. It uses trie snapshots in order to get older data

Types

type ArgHeaderRequester

type ArgHeaderRequester struct {
	Messenger                dataRetriever.MessageHandler
	ResponseTopicName        string
	NonceConverter           typeConverters.Uint64ByteSliceConverter
	HdrStorage               storage.Storer
	HeadersNoncesStorage     storage.Storer
	ManualEpochStartNotifier dataRetriever.ManualEpochStartNotifier
	ChanGracefullyClose      chan endProcess.ArgEndProcess
	DelayBeforeGracefulClose time.Duration
}

ArgHeaderRequester is the argument structure used to create new headerRequester instance

type ArgSliceRequester

type ArgSliceRequester struct {
	Messenger                dataRetriever.MessageHandler
	ResponseTopicName        string
	Storage                  storage.Storer
	DataPacker               dataRetriever.DataPacker
	Marshalizer              marshal.Marshalizer
	ManualEpochStartNotifier dataRetriever.ManualEpochStartNotifier
	ChanGracefullyClose      chan endProcess.ArgEndProcess
	DelayBeforeGracefulClose time.Duration
}

ArgSliceRequester is the argument structure used to create a new sliceRequester instance

type ArgTrieRequester

type ArgTrieRequester struct {
	Messenger                dataRetriever.MessageHandler
	ResponseTopicName        string
	Marshalizer              marshal.Marshalizer
	TrieDataGetter           dataRetriever.TrieDataGetter
	TrieStorageManager       common.StorageManager
	ManualEpochStartNotifier dataRetriever.ManualEpochStartNotifier
	ChanGracefullyClose      chan endProcess.ArgEndProcess
	DelayBeforeGracefulClose time.Duration
}

ArgTrieRequester is the argument structure used to create new TrieRequester instance

Jump to

Keyboard shortcuts

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