utils

package
v1.25.29 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 8, 2025 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConstantBackoff

func ConstantBackoff(maxrtry int, interval time.Duration) backoff.BackOff

ConstantBackoff is a backoff configuration used to handle getters retry for eventual consistency handling

func MustGetFreeTCPPort added in v1.25.0

func MustGetFreeTCPPort() (port int)

func NewBackoff

func NewBackoff() backoff.BackOff

NewBackoff returns a Backoff that can be used to retry an operation We have this function to ensure that we can use the same backoff settings in multiple places in weaviate.

func NewExponentialBackoff

func NewExponentialBackoff(initialInverval time.Duration, maxElapsedTime time.Duration) backoff.BackOff

After MaxElapsedTime the backoff.BackOff returns Stop. It never stops if MaxElapsedTime == 0.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL