retry

package
v2.16.4 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package retry provides functions to check if a gRPC error is retryable.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadbalancerIsNotReady

func LoadbalancerIsNotReady(err error) bool

LoadbalancerIsNotReady checks if the error was caused by a GCP LB not being ready yet.

func ServiceIsUnavailable

func ServiceIsUnavailable(err error) bool

ServiceIsUnavailable checks if the error is a grpc status with code Unavailable. In the special case of an authentication handshake failure, false is returned to prevent further retries. Since the GCP proxy loadbalancer may error with an authentication handshake failure if no available backends are ready, the special handshake errors caused by the GCP LB (e.g. "read tcp", "EOF") are retried.

Types

This section is empty.

Jump to

Keyboard shortcuts

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