storageResolvers

package
v1.4.16 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHeaderResolver

func NewHeaderResolver(arg ArgHeaderResolver) (*headerResolver, error)

NewHeaderResolver creates a new storage header resolver

func NewSliceResolver

func NewSliceResolver(arg ArgSliceResolver) (*sliceResolver, error)

NewSliceResolver is a wrapper over Resolver that is specialized in resolving single and multiple requests

func NewTrieNodeResolver

func NewTrieNodeResolver(arg ArgTrieResolver) (*trieNodeResolver, error)

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

Types

type ArgHeaderResolver

type ArgHeaderResolver 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
}

ArgHeaderResolver is the argument structure used to create new HeaderResolver instance

type ArgSliceResolver

type ArgSliceResolver 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
}

ArgSliceResolver is the argument structure used to create a new sliceResolver instance

type ArgTrieResolver

type ArgTrieResolver 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
}

ArgTrieResolver is the argument structure used to create new TrieResolver instance

Jump to

Keyboard shortcuts

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