package backoff
import "github.com/ydb-platform/ydb-go-sdk/v3/internal/backoff"
Index ¶
- Variables
- func New(opts ...option) logBackoff
- func WithCeiling(ceiling uint) option
- func WithJitterLimit(jitterLimit float64) option
- func WithSeed(seed int64) option
- func WithSlotDuration(slotDuration time.Duration) option
- type Backoff
- type Type
Variables ¶
var ( Fast = New( WithSlotDuration(fastSlot), WithCeiling(6), ) Slow = New( WithSlotDuration(slowSlot), WithCeiling(6), ) )
Functions ¶
func New ¶
func New(opts ...option) logBackoff
func WithCeiling ¶
func WithCeiling(ceiling uint) option
func WithJitterLimit ¶
func WithJitterLimit(jitterLimit float64) option
func WithSeed ¶
func WithSeed(seed int64) option
func WithSlotDuration ¶
Types ¶
type Backoff ¶
Backoff is the interface that contains logic of delaying operation retry.
type Type ¶
type Type uint8
Type reports how to Backoff operation
Binary flags that used as Type
func (Type) String ¶
Source Files ¶
- Version
- v3.61.2
- Published
- Mar 26, 2024
- Platform
- js/wasm
- Imports
- 4 packages
- Last checked
- 20 minutes ago –
Tools for package owners.