storagerequesters

package
v1.7.11 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 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

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

Jump to

Keyboard shortcuts

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