Tonis Tiigi fd8fbf21e6 vendor: initial vendor
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
..
balancer vendor: initial vendor
binarylog/grpc_binarylog_v1 vendor: initial vendor
codes vendor: initial vendor
connectivity vendor: initial vendor
credentials vendor: initial vendor
encoding vendor: initial vendor
grpclog vendor: initial vendor
health/grpc_health_v1 vendor: initial vendor
internal vendor: initial vendor
keepalive vendor: initial vendor
metadata vendor: initial vendor
naming vendor: initial vendor
peer vendor: initial vendor
resolver vendor: initial vendor
stats vendor: initial vendor
status vendor: initial vendor
tap vendor: initial vendor
.travis.yml vendor: initial vendor
AUTHORS vendor: initial vendor
CONTRIBUTING.md vendor: initial vendor
LICENSE vendor: initial vendor
Makefile vendor: initial vendor
README.md vendor: initial vendor
backoff.go vendor: initial vendor
balancer.go vendor: initial vendor
balancer_conn_wrappers.go vendor: initial vendor
balancer_v1_wrapper.go vendor: initial vendor
call.go vendor: initial vendor
clientconn.go vendor: initial vendor
codec.go vendor: initial vendor
codegen.sh vendor: initial vendor
dialoptions.go vendor: initial vendor
doc.go vendor: initial vendor
go.mod vendor: initial vendor
go.sum vendor: initial vendor
install_gae.sh vendor: initial vendor
interceptor.go vendor: initial vendor
picker_wrapper.go vendor: initial vendor
pickfirst.go vendor: initial vendor
proxy.go vendor: initial vendor
resolver_conn_wrapper.go vendor: initial vendor
rpc_util.go vendor: initial vendor
server.go vendor: initial vendor
service_config.go vendor: initial vendor
stream.go vendor: initial vendor
trace.go vendor: initial vendor
version.go vendor: initial vendor
vet.sh vendor: initial vendor

README.md

gRPC-Go

Build Status GoDoc GoReportCard

The Go implementation of gRPC: A high performance, open source, general RPC framework that puts mobile and HTTP/2 first. For more information see the gRPC Quick Start: Go guide.

Installation

To install this package, you need to install Go and setup your Go workspace on your computer. The simplest way to install the library is to run:

$ go get -u google.golang.org/grpc

Prerequisites

gRPC-Go requires Go 1.9 or later.

Constraints

The grpc package should only depend on standard Go packages and a small number of exceptions. If your contribution introduces new dependencies which are NOT in the list, you need a discussion with gRPC-Go authors and consultants.

Documentation

See API documentation for package and API descriptions and find examples in the examples directory.

Performance

See the current benchmarks for some of the languages supported in this dashboard.

Status

General Availability Google Cloud Platform Launch Stages.

FAQ

Compiling error, undefined: grpc.SupportPackageIsVersion

Please update proto package, gRPC package and rebuild the proto files:

  • go get -u github.com/golang/protobuf/{proto,protoc-gen-go}
  • go get -u google.golang.org/grpc
  • protoc --go_out=plugins=grpc:. *.proto

How to turn on logging

The default logger is controlled by the environment variables. Turn everything on by setting:

GRPC_GO_LOG_VERBOSITY_LEVEL=99 GRPC_GO_LOG_SEVERITY_LEVEL=info

The RPC failed with error "code = Unavailable desc = transport is closing"

This error means the connection the RPC is using was closed, and there are many possible reasons, including:

  1. mis-configured transport credentials, connection failed on handshaking
  2. bytes disrupted, possibly by a proxy in between
  3. server shutdown

It can be tricky to debug this because the error happens on the client side but the root cause of the connection being closed is on the server side. Turn on logging on both client and server, and see if there are any transport errors.