perf: golang.org/x/perf/vendor/google.golang.org/api/transport Index | Files

package transport

import "golang.org/x/perf/vendor/google.golang.org/api/transport"

Package transport supports network connections to HTTP and GRPC servers. This package is not intended for use by end developers. Use the google.golang.org/api/option package to configure API clients.

Index

Package Files

dial.go

func DialGRPC Uses

func DialGRPC(ctx context.Context, opts ...option.ClientOption) (*grpc.ClientConn, error)

DialGRPC returns a GRPC connection for use communicating with a Google cloud service, configured with the given ClientOptions.

func NewHTTPClient Uses

func NewHTTPClient(ctx context.Context, opts ...option.ClientOption) (*http.Client, string, error)

NewHTTPClient 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.

Package transport imports 13 packages (graph). Updated 2019-09-26. Refresh now. Tools for package owners.