Commit Graph

94 Commits

Author SHA1 Message Date
Menghan Li c7079afb44
lint: fail on missing package comment (#3524)
golint does check for missing package comment, but with low confidence.
golint checks each file, and complains on every file missing package comment, even though another file in the same package has the comment.

This PR adds a golint check with low min_confidence, and filters out false-positives.
2020-04-15 09:59:17 -07:00
Garrett Gutierrez 132187f04c
Modified tests to use tlogger. (#3343)
* Modified tests to use tlogger.

* Fail on errors, with error expectations.

* Added expects and MixedCapsed grpclb_config tests

* Moved tlogger to grpctest, moved leakcheck tester to grpctest.go

* Added ExpectErrorN()

* Removed redundant leak checks

* Fixed new test

* Made tlogger globals into tlogger methods

* ErrorsLeft -> EndTest

* Removed some redundant lines

* Fixed error in test and empty map in EndTest
2020-02-06 13:03:20 -08:00
Doug Fawley b88d2d7465
protobuf: update protoc-gen-go version and generated code (#3345) 2020-01-30 10:23:21 -08:00
Michael Le 8988da6e70 examples: add examples regression test script (#3118) 2019-10-31 13:11:53 -07:00
Menghan Li 5367efb805
cleanup: no x/net/context (#3120)
Manual change + mockgen
2019-10-29 13:06:26 -07:00
Michael Le b53233ce4c examples: add regression test script to hello world example (#3092) 2019-10-21 13:00:46 -07:00
Doug Fawley 50c4579fc2
examples: add Unimplemented___Server to all example servers (#3071) 2019-10-04 10:54:09 -07:00
Doug Fawley e2cfd1c28f
internal: update proto library version (#3025)
Also, two fixes:

- Fix long-standing `.travis.yml` bug where `VET_SKIP_PROTO` was not `export`ed (so not seen by `vet.sh`).
- Update `vet.sh` to work with new `goimports -l` that does not print a `:` after filenames.
2019-09-17 13:49:26 -07:00
Michael Le 0574097d67 example: use proto message Get methods in helloworld (#2990) 2019-08-22 13:56:23 -07:00
Zuhayr Elahi b86a9dbd22 documentation: Adds package level comments (#2612)
* ADDED package level comments for: benchmark/, examples/helloworld/

* UPDATED code to run gofmt

* FIXED linter errors

* FIXED spelling error

* FIXED documentation based on feedback

* FIXED comment to add pointer to another file

* ADDED reference to start server

* ADDED fix to include command to start server
2019-02-21 13:05:00 -08:00
Menghan Li 6086f8d68f
examples: reflection (#2594) 2019-01-25 15:35:01 -08:00
Ning Xie 3961168004 enhance log for hello world SayHello (#2538)
This PR adds a log to `SayHello`. This makes server logic more clear.
2018-12-27 12:40:13 -08:00
Doug Fawley 04ea82009c
cleanup: replace "x/net/context" import with "context" (#2439) 2018-11-12 13:30:41 -08:00
Menghan Li 39a411827d
internal: Update proto generated code (#2133) 2018-06-08 17:54:26 -07:00
Menghan Li f669235193
internal: update proto generated code (#2093) 2018-05-21 09:59:26 -07:00
lyuxuan a36eb4675a
regenerate *.pb.go files due to proto-gen-go update (#2070) 2018-05-11 18:57:54 -07:00
Menghan Li e538e04cad proto: update generated code (#2039) 2018-05-01 12:53:20 -07:00
Menghan Li f0a1202acd examples: Replace context.Background with context.WithTimeout (#1877) 2018-02-28 15:01:36 -08:00
Menghan Li a68137c927 Revert "Added localhost to net.Listen() calls to avoid macOS firewall dialog." (#1541)
This reverts commit c67cd636f9.
2017-09-27 00:01:17 -07:00
Hein Meling c67cd636f9 Added localhost to net.Listen() calls to avoid macOS firewall dialog. (#1539) 2017-09-26 10:19:45 -07:00
dfawley 25b4a426b4 go-generate pb.go files and check in Travis to make sure they don't change (#1426) 2017-08-17 16:00:51 -07:00
田欧 a94a7ac054 add license for some files (#1296) 2017-06-12 18:10:06 -07:00
Jan Tattermusch ddbf6c46a6 autofix license notice 2017-06-08 14:42:19 +02:00
dfawley 68a5d50f45 Fix go buildable source file problem (#1213) 2017-05-02 15:55:05 -07:00
Mahak Mukhi 5ebdd304ba lint update and test fix 2017-03-08 11:35:54 -08:00
Mahak Mukhi 6a68fd8584 post review updates 2016-12-15 14:07:52 -08:00
Mahak Mukhi 9cc4fd4cca Example code on how to mock gRPC services 2016-12-13 13:06:25 -08:00
Menghan Li cc3363f26e Merge pull request #937 from menghanl/reflection_tutorial
Add server-reflection-tutorial.md
2016-11-29 17:57:20 -08:00
Mahak Mukhi 883bfc7bc8 pb.go file update 2016-10-28 12:37:56 -07:00
Mak Mukhi 727a60e4d1 update server reflection code to comply with the change to the grpc generator 2016-10-21 18:06:55 -07:00
Menghan Li 522de0d748 Add server-reflection-tutorial.md 2016-10-20 17:53:38 -07:00
Keiji Yoshida f639bef1a3 Add an error handling to "greeter_server" 2016-10-10 11:16:53 +09:00
Menghan Li abe672d5ed Update generated files 2016-06-10 14:20:04 -07:00
Menghan Li 0da018f37e Update generated files 2016-06-09 15:02:17 -07:00
iamqizhao 61e92eacc3 Phase 1 to add the server interceptor 2016-04-18 16:18:34 -07:00
David Symonds a0594a1683 Run gofmt over Go source files. 2016-03-16 15:11:58 +11:00
Tamir Duberstein accbf4c185 `make proto` 2016-02-04 17:35:04 -05:00
Eric Anderson d3c0f79fa5 Sync example protos from main repository
grpc/grpc-java#1381
2016-02-03 10:14:35 -08:00
iamqizhao ca78069909 fix a typo 2015-11-18 10:57:30 -08:00
iamqizhao a15e3b9562 decodeFunc -> dec 2015-10-01 16:26:00 -07:00
iamqizhao 1d81cf4f22 fix all the generated code 2015-10-01 14:35:07 -07:00
iamqizhao 72a3b4a331 fix helloworld example 2015-08-27 19:20:52 -07:00
Stanley Cheung 322d9cf0e2 rearrange helloworld example folder structure 2015-08-27 18:57:12 -07:00
Stanley Cheung f26e2dbd6b move grpc-common examples to right location 2015-08-27 15:42:22 -07:00