Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Annotate ¶
Annotate prepends msg to the error message in err, attempting to preserve other information in err, like an error code.
Annotate panics if err is nil.
Annotate knows about these error types: - "google.golang.org/grpc/status".Status - "google.golang.org/api/googleapi".Error If the error is not one of these types, Annotate behaves like
fmt.Errorf("%s: %v", msg, err)
func Retry ¶
Retry calls the supplied function f repeatedly according to the provided backoff parameters. It returns when one of the following occurs: When f's first return value is true, Retry immediately returns with f's second return value. When the provided context is done, Retry returns with an error that includes both ctx.Error() and the last error returned by f.
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package optional provides versions of primitive types that can be nil.
|
Package optional provides versions of primitive types that can be nil. |
Package version contains version information for Google Cloud Client Libraries for Go, as reported in request headers.
|
Package version contains version information for Google Cloud Client Libraries for Go, as reported in request headers. |