Граф коммитов

11 Коммитов

Автор SHA1 Сообщение Дата
iamqizhao 568c0e64bc remove a TODO 2015-02-26 18:19:47 -08:00
iamqizhao c42573b827 improve error logging 2015-02-25 16:33:12 -08:00
Matt T. Proud 6340c9ec1d Gracefully deny supplemental transport shutdowns.
This commit ensures that transport shutdowns do not panic on
supplemental shutdowns, even if users should not attempt multiple
shutdowns.  This is done to make the surface for users a little more
forgiving.

The _transport suffix in these implementation filenames are dropped
since they are already part of the transport package, which makes
the specification both redundant and adds stutter.

TEST=``go test ./...``
2015-02-25 21:42:08 +01:00
iamqizhao 491fdc57f4 change grpc/transport to transport in error messages 2015-02-25 11:21:34 -08:00
iamqizhao bdce4ae018 fix a comment 2015-02-19 13:35:28 -08:00
iamqizhao ad3b2b5492 :authority is a pseudo-header 2015-02-19 13:25:27 -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 6148d0a55d Migrated to the latest google.org/x/oauth2 package and added support for JWT. 2015-02-18 12:02:43 -08:00
David Symonds 3981839a52 Add import comments to grpc packages.
This enforces that these packages are used with these import paths.
See http://golang.org/cmd/go/#hdr-Import_path_checking for documentation.
2015-02-09 13:46:16 +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 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