Documentation
¶
Overview ¶
Package retry provides a retry helper for talking to S2A gRPC server. The implementation is modeled after https://github.com/googleapis/google-cloud-go/blob/main/compute/metadata/retry.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NewRetryer = func() *S2ARetryer { return &S2ARetryer{bo: &defaultBackoff{ cur: 100 * time.Millisecond, max: 30 * time.Second, mul: 2, }} }
NewRetryer creates an instance of S2ARetryer using the defaultBackoff implementation.
Functions ¶
Types ¶
type S2ARetryer ¶
type S2ARetryer struct {
// contains filtered or unexported fields
}
S2ARetryer implements a retry helper for talking to S2A gRPC server.
func (*S2ARetryer) Attempts ¶
func (r *S2ARetryer) Attempts() int
Attempts return the number of retries attempted.
Click to show internal directories.
Click to hide internal directories.