Documentation ¶
Index ¶
Constants ¶
View Source
const ( ServerVersion = "0.3.1" MDBInitialSize = 1048576 TwoToTheSixtyThree = 9223372036854775808 SubmissionMinSubmitDelay = 2 * time.Millisecond SubmissionMaxSubmitDelay = 2 * time.Second VarRollDelayMin = 50 * time.Millisecond VarRollDelayMax = 500 * time.Millisecond VarRollTimeExpectation = 3 * time.Millisecond VarRollPRequirement = 0.9 VarRollForceNotFirstAfter = time.Second ConnectionRestartDelayRangeMS = 5000 ConnectionRestartDelayMin = 3 * time.Second MostRandomByteIndex = 7 // will be the lsb of a big-endian client-n in the txnid. MigrationBatchElemCount = 64 PoissonSamples = 64 )
Variables ¶
View Source
var EmptyStructVal = EmptyStruct{}
Functions ¶
func CheckFatal ¶
func CheckFatal(e error)
func SegToBytes ¶
Types ¶
type BinaryBackoffEngine ¶
func NewBinaryBackoffEngine ¶
func NewBinaryBackoffEngine(rng *rand.Rand, min, max time.Duration) *BinaryBackoffEngine
func (*BinaryBackoffEngine) Advance ¶
func (bbe *BinaryBackoffEngine) Advance() time.Duration
func (*BinaryBackoffEngine) After ¶
func (bbe *BinaryBackoffEngine) After(fun func())
func (*BinaryBackoffEngine) Shrink ¶
func (bbe *BinaryBackoffEngine) Shrink(roundToZero time.Duration)
type EmptyStruct ¶
type EmptyStruct struct{}
func (EmptyStruct) String ¶
func (es EmptyStruct) String() string
type StatusConsumer ¶
func NewStatusConsumer ¶
func NewStatusConsumer() *StatusConsumer
func (*StatusConsumer) Consume ¶
func (s *StatusConsumer) Consume(fun func(string))
func (*StatusConsumer) Emit ¶
func (s *StatusConsumer) Emit(status ...string)
func (*StatusConsumer) Fork ¶
func (s *StatusConsumer) Fork() *StatusConsumer
func (*StatusConsumer) Join ¶
func (s *StatusConsumer) Join()
Click to show internal directories.
Click to hide internal directories.