transport

package
v0.0.0-...-30fab63 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 29, 2016 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DialGRPC

func DialGRPC(ctx context.Context, opt ...cloud.ClientOption) (*grpc.ClientConn, error)

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

func NewHTTPClient

func NewHTTPClient(ctx context.Context, opt ...cloud.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.

Types

type ErrHTTP

type ErrHTTP struct {
	StatusCode int
	Body       []byte
	// contains filtered or unexported fields
}

ErrHTTP is returned when on a non-200 HTTP response.

func (*ErrHTTP) Error

func (e *ErrHTTP) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL