package
0.0.0-20221205081027-fb1d94189521
Repository: https://github.com/ti-net2/apiserver.git
Documentation: pkg.go.dev

# Functions

NewStorageObjectCountTracker returns an instance of StorageObjectCountTracker interface that can be used to keep track of the total number of objects for each resource.
NewWorkEstimator estimates the work that will be done by a given request, if no WorkEstimatorFunc matches the given request then the default work estimate of 1 seat is allocated to the request.
SeatsTimeDuration produces the SeatSeconds value for the given factors.

# Constants

MaxSeatsSeconds is the maximum representable value of SeatSeconds.
MinSeatSeconds is the lowest representable value of SeatSeconds.

# Variables

ObjectCountNotFoundErr is returned when the object count for a given resource is not being tracked.
ObjectCountStaleErr is returned when the object count for a given resource has gone stale due to transient failures.

# Structs

WorkEstimate carries three of the four parameters that determine the work in a request.

# Interfaces

StorageObjectCountTracker is an interface that is used to keep track of of the total number of objects for each resource.

# Type aliases

SeatSeconds is a measure of work, in units of seat-seconds, using a fixed-point representation.
WorkEstimatorFunc returns the estimated work of a given request.