package
0.0.0-20240617132614-67d941d235d7
Repository: https://github.com/bitonechain/go-bitone.git
Documentation: pkg.go.dev
# Functions
ExpFactor calculates ExpirationFactor based on logOffset.
float64ToFixed64 converts float64 to Fixed64 format.
NewExecQueue creates a new execution Queue.
No description provided by the author
NewWeightedRandomSelect returns a new WeightedRandomSelect structure.
Uint64ToFixed64 converts uint64 integer to Fixed64 format.
# Structs
ExecQueue implements a queue that executes function calls in a single thread, in the same order as they have been queued.
ExpirationFactor is calculated from logOffset.
ExpiredValue is a scalar value that is continuously expired (decreased exponentially) based on the provided logarithmic expiration offset value.
Expirer changes logOffset with a linear rate which can be changed during operation.
LinearExpiredValue is very similar with the expiredValue which the value will continuously expired.
No description provided by the author
No description provided by the author
# Interfaces
ValueExpirer controls value expiration rate.
No description provided by the author