Versions in this module Expand all Collapse all v1 v1.0.1 Sep 26, 2022 Changes in this version + const BatchGetMaxBackoff + const CleanupMaxBackoff + const CopBuildTaskMaxBackoff + const CopNextMaxBackoff + const DecorrJitter + const DeleteRangeOneRegionMaxBackoff + const EqualJitter + const FullJitter + const GcOneRegionMaxBackoff + const GcResolveLockMaxBackoff + const GetMaxBackoff + const NoJitter + const PrewriteMaxBackoff + const RawkvMaxBackoff + const ScannerNextMaxBackoff + const SplitRegionBackoff + const TsoMaxBackoff + var CommitMaxBackoff = 41000 + func NewBackoffFn(base, cap, jitter int) func(ctx context.Context) int + type BackoffType int + const BoPDRPC + const BoRegionMiss + const BoServerBusy + const BoTiKVRPC + const BoTxnLock + const BoTxnLockFast + const BoUpdateLeader + func (t BackoffType) String() string + type Backoffer struct + func NewBackoffer(ctx context.Context, maxSleep int) *Backoffer + func (b *Backoffer) Backoff(typ BackoffType, err error) error + func (b *Backoffer) Clone() *Backoffer + func (b *Backoffer) Fork() (*Backoffer, context.CancelFunc) + func (b *Backoffer) GetContext() context.Context + func (b *Backoffer) String() string + func (b *Backoffer) TotalSleep() time.Duration