func NewClient(ctx context.Context, opts ...option.ClientOption) (*http.Client, string, error)
NewClient returns an HTTP client for use communicating with a Google cloud service, configured with the given ClientOptions. It also returns the endpoint for the service as specified in the options.
func NewTransport(ctx context.Context, base http.RoundTripper, opts ...option.ClientOption) (http.RoundTripper, error)
NewTransport creates an http.RoundTripper for use communicating with a Google cloud service, configured with the given ClientOptions. Its RoundTrip method delegates to base.
Name | Synopsis |
---|---|
.. |