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
Click to show internal directories.
Click to hide internal directories.