package
0.38.0-preview.0
Repository: https://github.com/onflow/flow-go.git
Documentation: pkg.go.dev

# Functions

MaxAttemptQualifier only qualifies a chunk request if it has been requested less than the specified number of attempts.
No description provided by the author
RetryAfterQualifier only qualifies a chunk request if its retryAfter duration has been elapsed since the last time this request has been dispatched.

# Constants

DefaultBackoffMaxInterval is the maximum time interval a chunk data pack request waits before dispatching.
DefaultBackoffMinInterval is the minimum time interval a chunk data pack request waits before dispatching.
DefaultBackoffMultiplier is the base of exponent in exponential backoff multiplier for backing off requests for chunk data packs.
DefaultRequestInterval is the time interval that requester engine tries requesting chunk data packs.
DefaultRequestTargets is the maximum number of execution nodes a chunk data pack request is dispatched to.

# Structs

Engine implements a ChunkDataPackRequester that is responsible of receiving chunk data pack requests, dispatching it to the execution nodes, receiving the requested chunk data pack from execution nodes, and passing it to the registered handler.

# Type aliases

RequestQualifierFunc is a function type that on receiving the number of attempts a chunk has been requested with, the last time it has been requested, and the duration at which the chunk can be retried after, returns either true or false.