Commit Graph

669 Commits

Author SHA1 Message Date
iamqizhao 2b993cd479 rename the convenience function to set TLS creds 2015-02-25 22:57:07 -08:00
iamqizhao 2f821c8afc migrate to the new codegen solution 2015-02-19 18:43:28 -08:00
iamqizhao fc10c7b40c Let RecvProto return nil for client stream rpc 2015-02-19 16:48:59 -08:00
Matt T. Proud a720ae6f48 Make error conveyance more idiomatic.
This commit applies two bulk changes to the grpc error reporting
mechanisms:

(1.) Error strings for errors that originate within grpc are prefixed
    with the package name for better clarity for where they originate
    since they could percolate up in the users call chains to the
    originator.

(2.) Errors that are, in fact, singletons have been converted from
    fmt.Errorf to errors.New and assigned as package-level variables.
    This bodes particularly well for enabling API customers to elect to
    handle these errors upon receipt via equality comparison.  This had
    been previous impossible with the original API.

Supplementarily, ``gofmt -w -s=true`` has been run on the repository to
cleanup residual defects, and it has detected and repaired a few.

TEST=Manual go test ./...
2015-02-19 13:17:17 +01:00
iamqizhao 634392a1c6 Remove the 2nd RecvProto in the generated code for client streaming 2015-02-18 22:18:01 -08:00
iamqizhao 78d3bc72bf Make the generated code return nil intead of io.EOF when everything succeeds. 2015-02-13 17:10:37 -08:00
iamqizhao fe60321708 Fix some comments 2015-02-13 16:43:51 -08:00
iamqizhao a205ce5f65 cpp updates interop proto for auth interop testing. Update the proto correspondingly. 2015-02-13 11:11:33 -08:00
iamqizhao ece135da8b Use the generated code from upcoming new grpc codegen 2015-02-12 17:04:32 -08:00
iamqizhao 2b6078284c gofmt on end2end_test.go 2015-02-11 19:05:22 -08:00
iamqizhao 9c9eb38d0d Replace rpc with grpc in a error message. 2015-02-11 19:03:57 -08:00
iamqizhao 5c0599c9f0 Use interop proto to replace the one used in end2end_test.go because interop proto is better for testing corner and error cases. The code change is mostly copied/pasted from interop client & server. 2015-02-11 19:00:55 -08:00
iamqizhao fd7185b96f fix an error formatting 2015-02-09 19:16:31 -08:00
iamqizhao 38fe463420 add the missing license in the previous commit 2015-02-09 16:39:03 -08:00
iamqizhao f61c1dbb05 rename the proto dir, prepare for porting into google3 2015-02-09 16:35:10 -08:00
David Symonds 49a2ba59b6 Fix up a couple of other imports to use the new package name. 2015-02-09 11:50:54 +11:00
David Symonds 416f68f4b3 Update import paths to use the new official location of the Go gRPC package. 2015-02-09 11:46:20 +11:00
David Symonds 9e789c396b Rename top level package from "rpc" to "grpc".
Also move the nascent package doc to doc.go.
2015-02-09 11:45:33 +11:00
David Symonds e71095e0ec Move source files up one level.
The top-level directory in this repository is going to be
the main "grpc" package.
2015-02-09 11:33:38 +11:00