The Go language implementation of gRPC. HTTP/2 based RPC
Перейти к файлу
Jean de Klerk 9aba04495f server: Convert all non-status errors to codes.Unknown (#1881)
- convertCode utilized errors that were not allowed by the library per 9d0bc30edb/doc/statuscodes.md
- Relevant issue: #1672
2018-03-08 13:46:26 -08:00
.github
Documentation metadata: provide AppendToOutgoingContext interface (#1794) 2018-02-12 11:10:37 -08:00
balancer Notify parent ClientConn to re-resolve in grpclb (#1699) 2017-12-18 15:36:55 -08:00
benchmark Small spelling fixes (unknow -> unknown) (#1868) 2018-02-22 13:10:19 -08:00
codes update const order (#1770) 2018-01-04 15:44:29 -08:00
connectivity
credentials credentials/alts: change ALTS protos to match the golden version (#1908) 2018-03-08 12:12:55 -08:00
encoding Fix lint error and typo (#1843) 2018-02-01 11:38:14 -08:00
examples examples: Replace context.Background with context.WithTimeout (#1877) 2018-02-28 15:01:36 -08:00
grpclb Add dial option to set balancer (#1697) 2017-12-18 15:35:42 -08:00
grpclog
health
internal status: add Code convenience function (#1754) 2017-12-18 15:00:50 -08:00
interop interop: Add use_alts flag to client and server binaries (#1896) 2018-03-07 10:21:48 -08:00
keepalive
metadata metadata: provide AppendToOutgoingContext interface (#1794) 2018-02-12 11:10:37 -08:00
naming
peer
reflection
resolver Revert "Add WithResolverUserOptions for custom resolver build options" (#1839) 2018-02-05 12:52:35 -08:00
stats streams: Stop cleaning up after orphaned streams (#1854) 2018-02-08 10:51:16 -08:00
status Add status.Convert convenience function (#1848) 2018-02-08 13:15:38 -08:00
stress
tap
test addrConn: Report underlying connection error in RPC error (#1855) 2018-02-14 14:13:10 -08:00
testdata
transport Expunge error codes that shouldn't be returned from library (#1875) 2018-02-22 14:28:59 -08:00
.travis.yml
AUTHORS
CONTRIBUTING.md
LICENSE
Makefile
README.md
backoff.go
backoff_test.go
balancer.go
balancer_conn_wrappers.go Notify parent ClientConn to re-resolve in grpclb (#1699) 2017-12-18 15:36:55 -08:00
balancer_switching_test.go Add dial option to set balancer (#1697) 2017-12-18 15:35:42 -08:00
balancer_test.go status: add Code convenience function (#1754) 2017-12-18 15:00:50 -08:00
balancer_v1_wrapper.go
call.go Implement unary functionality using streams (#1835) 2018-02-05 12:54:13 -08:00
call_test.go status: add Code convenience function (#1754) 2017-12-18 15:00:50 -08:00
clientconn.go Fix test race: Atomically access minConnecTimout in testing environment. (#1897) 2018-03-07 10:36:17 -08:00
clientconn_test.go Fix test race: Atomically access minConnecTimout in testing environment. (#1897) 2018-03-07 10:36:17 -08:00
codec.go encoding: Introduce new method for registering and choosing codecs (#1813) 2018-01-23 11:39:40 -08:00
codec_test.go encoding: Introduce new method for registering and choosing codecs (#1813) 2018-01-23 11:39:40 -08:00
codegen.sh
doc.go
go16.go server: Convert all non-status errors to codes.Unknown (#1881) 2018-03-08 13:46:26 -08:00
go17.go server: Convert all non-status errors to codes.Unknown (#1881) 2018-03-08 13:46:26 -08:00
grpclb.go grpclb: Remove duplicate init() (#1764) 2017-12-22 13:43:22 -08:00
grpclb_picker.go
grpclb_remote_balancer.go Add dial option to set balancer (#1697) 2017-12-18 15:35:42 -08:00
grpclb_util.go Notify parent ClientConn to re-resolve in grpclb (#1699) 2017-12-18 15:36:55 -08:00
interceptor.go server: Convert all non-status errors to codes.Unknown (#1881) 2018-03-08 13:46:26 -08:00
picker_wrapper.go addrConn: Report underlying connection error in RPC error (#1855) 2018-02-14 14:13:10 -08:00
picker_wrapper_test.go
pickfirst.go Add dial option to set balancer (#1697) 2017-12-18 15:35:42 -08:00
pickfirst_test.go Add dial option to set balancer (#1697) 2017-12-18 15:35:42 -08:00
proxy.go
proxy_test.go
resolver_conn_wrapper.go Revert "Add WithResolverUserOptions for custom resolver build options" (#1839) 2018-02-05 12:52:35 -08:00
resolver_conn_wrapper_test.go
rpc_util.go Change version to 1.11.0-dev (#1863) 2018-02-15 15:27:11 -08:00
rpc_util_test.go encoding: Introduce new method for registering and choosing codecs (#1813) 2018-01-23 11:39:40 -08:00
server.go server: Convert all non-status errors to codes.Unknown (#1881) 2018-03-08 13:46:26 -08:00
server_test.go
service_config.go
service_config_test.go
stream.go server: Convert all non-status errors to codes.Unknown (#1881) 2018-03-08 13:46:26 -08:00
trace.go
vet.sh vet: run golint on _string files (#1749) 2017-12-18 10:58:57 -08:00

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

This requires Go 1.6 or later. Go 1.7 will be required as of the next gRPC-Go release (1.8).

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