package
5.6.3-darwinv2-rc0+incompatible
Repository: https://github.com/scroll-tech/go-ethereum.git
Documentation: pkg.go.dev

# Functions

NewFillSet creates a new FillSet.
NewPrivateClientAPI creates a PrivateClientAPI.
NewQueueIterator creates a new QueueIterator.
NewServerPool creates a new server pool.
NewValueTracker creates a new ValueTracker and loads its previously saved state from the database if possible.
NewWrsIterator creates a new WrsIterator.
StatScaleToTime converts a distribution vector index to a response time.
TimeoutWeights calculates the weight function used for calculating service value based on the response time distribution of the received service.
TimeToStatScale converts a response time to a distribution vector index.

# Structs

FillSet tries to read nodes from an input iterator and add them to a node set by setting the specified node state flag(s) until the size of the set reaches the target.
NodeValueTracker collects service value statistics for a specific server node.
PrivateClientAPI implements the vflux client side API.
QueueIterator returns nodes from the specified selectable set in the same order as they entered the set.
RequestInfo is an initializer structure for the service vector.
No description provided by the author
ResponseTimeStats is the response time distribution of a set of answered requests, weighted with request value, either served by a single server or aggregated for multiple servers.
No description provided by the author
ServerPool provides a node iterator for dial candidates.
ValueTracker coordinates service value calculation for individual servers and updates global statistics.
WrsIterator returns nodes from the specified selectable set with a weighted random selection.

# Type aliases

queryFunc sends a pre-negotiation query and blocks until a response arrives or timeout occurs.
ResponseTimeStats is the response time distribution of a set of answered requests, weighted with request value, either served by a single server or aggregated for multiple servers.
RtDistribution represents a distribution as a series of (X, Y) chart coordinates, where the X axis is the response time in seconds while the Y axis is the amount of service value received with a response time close to the X coordinate.