package internal
import "cloud.google.com/go/internal"
Package internal provides support for the cloud packages.
Users should not import this package directly.
Index ¶
- func Retry(ctx context.Context, bo gax.Backoff, f func() (stop bool, err error)) error
- type Transport
Functions ¶
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 ctx.Err().
Types ¶
type Transport ¶
type Transport struct { // Base is the actual http.RoundTripper // requests will use. It must not be nil. Base http.RoundTripper }
Transport is an http.RoundTripper that appends Google Cloud client's user-agent to the original request's user-agent header.
func (*Transport) RoundTrip ¶
RoundTrip appends a user-agent to the existing user-agent header and delegates the request to the base http.RoundTripper.
Source Files ¶
cloud.go retry.go
Directories ¶
Path | Synopsis |
---|---|
internal/atomiccache | Package atomiccache provides a map-based cache that supports very fast reads. |
internal/fields | Package fields provides a view of the fields of a struct that follows the Go rules, amended to consider tags and case insensitivity. |
internal/optional | Package optional provides versions of primitive types that can be nil. |
internal/pretty | Package pretty implements a simple pretty-printer. |
internal/testutil | Package testutil contains helper functions for writing tests. |
internal/version | Package version contains version information for Google Cloud Client Libraries for Go, as reported in request headers. |
- Version
- v0.7.0
- Published
- Mar 10, 2017
- Platform
- darwin/amd64
- Imports
- 5 packages
- Last checked
- now –
Tools for package owners.