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 ¶
LoadbalancerIsNotReady checks if the error was caused by a GCP LB not being ready yet.
func ServiceIsUnavailable ¶
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.
Click to show internal directories.
Click to hide internal directories.