commit | deb01f422a11e3ca17cfe1ec8a3596debda9c473 | [log] [tgz] |
---|---|---|
author | Menghan Li <menghanl@google.com> | Wed Nov 30 16:25:46 2016 -0800 |
committer | Qi Zhao <toqizhao@gmail.com> | Wed Nov 30 16:25:46 2016 -0800 |
tree | d2aba373ff66aaeaf27cb1fc09f34ccd82206d39 | |
parent | cc3363f26e0b0908b9bea322aa3a3489bd930913 [diff] |
add stats tagger APIs and connection stats. (#992) * add stats.tagger APIs and connection stats. * fix comments use ac.ctx in http2client change name and comments small fixes stats_tests * add a TODO to ConnTagInfo * rename handle to handleRPC * modify stats comments
#gRPC-Go
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 guide.
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 google.golang.org/grpc
This requires Go 1.5 or later.
A note on the version used: significant performance improvements in benchmarks of grpc-go have been seen by upgrading the go version from 1.5 to the latest 1.7.1.
From https://golang.org/doc/install, one way to install the latest version of go is:
$ GO_VERSION=1.7.1 $ OS=linux $ ARCH=amd64 $ curl -O https://storage.googleapis.com/golang/go${GO_VERSION}.${OS}-${ARCH}.tar.gz $ sudo tar -C /usr/local -xzf go$GO_VERSION.$OS-$ARCH.tar.gz $ # Put go on the PATH, keep the usual installation dir $ sudo ln -s /usr/local/go/bin/go /usr/bin/go $ rm go$GO_VERSION.$OS-$ARCH.tar.gz
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.
See API documentation for package and API descriptions and find examples in the examples directory.
GA
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