132 Commits

Author SHA1 Message Date
6086f8d68f examples: reflection (#2594) 2019-01-25 15:35:01 -08:00
9572bbe0f9 cleanup: remove unused symbols (#2581) 2019-01-17 10:14:45 -08:00
59acad4c45 cleanup: more simplifications (#2574) 2019-01-16 13:07:56 -08:00
c71aa62423 example: interceptor (#2541)
fix #2483
2019-01-02 10:33:06 -08:00
36f3126920 example: name_resolving (#2514) 2018-12-27 14:30:17 -08:00
2197c7b0de example: load_balancing (#2504) 2018-12-27 14:29:52 -08:00
0a3dc64b95 example: debugging (#2536)
fixes #2491
2018-12-27 14:03:13 -08:00
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
25de51fc02 example: errors (#2534)
* Adds readme.

* Fills readme.

* Adds readme.

* Moves error examples.

* Adds port flag.

* Changes the flag for clients.

* Adds package comments.
2018-12-21 16:55:49 -08:00
f286604fb2 example: cancellation (#2525) 2018-12-21 15:45:49 -08:00
2cb2074db0 example: authentication (#2531) 2018-12-21 14:43:20 -08:00
adac1aeabd example: compression (#2527) 2018-12-21 13:55:59 -08:00
30155c0ba1 example: errors (#2521)
* Adds readme.

* Fills readme.

* Adds readme.
2018-12-20 17:55:12 -08:00
463950a151 internal: example flag.Parse() and comments (#2526) 2018-12-20 12:43:38 -08:00
d9bc55b745 example: encryption (#2524)
fixes #2487
2018-12-19 16:45:46 -08:00
42df0c551e examples: deadline (#2494)
* Deadliner service

* Works.

* Uses helloworld.proto.

* Style fix

* Comments

* Uses Echo service and adds streaming example.

* Addresses the comments.

* Adds an error.

* Addresses PR comments.

* Removes port parameter from a function.
2018-12-14 15:36:21 -08:00
b74673af89 examples: wait_for_ready (#2503)
* Working example.

* Uses echo server.

* Style fix.

* Changes client streaming implementation.

* Adds README.

* replaces the use of failfast with waitforready.

* Adds package comment.
2018-12-13 16:13:38 -08:00
39333409e4 internal: copy testdata to routeguide (#2478)
So it's not necessary to set the testdata file as flag.

Without this, using relative directory, the example only works if run in `example/routeguide`.
2018-12-13 14:47:53 -08:00
9d925ce589 examples: metadata (#2500) 2018-12-13 14:45:14 -08:00
a3af876a09 internal: document example/echo proto (#2517) 2018-12-10 14:56:32 -08:00
187e357ac1 examples: multiplex (#2477) 2018-12-06 14:02:16 -08:00
49616eb1a1 examples: add echo proto (#2505) 2018-12-06 10:40:29 -08:00
04ea82009c cleanup: replace "x/net/context" import with "context" (#2439) 2018-11-12 13:30:41 -08:00
39a411827d internal: Update proto generated code (#2133) 2018-06-08 17:54:26 -07:00
f669235193 internal: update proto generated code (#2093) 2018-05-21 09:59:26 -07:00
a36eb4675a regenerate *.pb.go files due to proto-gen-go update (#2070) 2018-05-11 18:57:54 -07:00
e538e04cad proto: update generated code (#2039) 2018-05-01 12:53:20 -07:00
247a5d4487 Fix typos (#2020) 2018-04-24 16:09:35 -07:00
d27df52a27 documentation: add OAuth2 doc and example (#2003) 2018-04-18 11:25:19 -07:00
0ff1b76450 routeguide: reimplement distance calculation 2018-03-22 12:52:22 +01:00
5415d18359 Add documentation and example of adding details to errors (#1915) 2018-03-21 08:56:43 -07:00
f0a1202acd examples: Replace context.Background with context.WithTimeout (#1877) 2018-02-28 15:01:36 -08:00
82e9f61ddd Use keyed fields for struct initializers (#1829) 2018-01-24 10:45:49 -08:00
45088c2971 examples: fix concurrent map accesses in route_guide server (#1752) 2017-12-18 10:21:30 -08:00
580defabfe Fix grpc basics link in route_guide example (#1713) 2017-12-06 15:11:16 -08:00
3790967af4 Add protoc command to example/readme (#1653)
So users can copy the command and try with their own protos.
2017-11-06 14:58:18 -08:00
c91118c8fa Update examples/README.md (#1629) 2017-10-30 10:54:07 -07:00
5c3d956e18 Re-add support for Go1.6 (#1603) 2017-10-20 12:05:20 -07:00
faebfcb7bf Remove single-entry var blocks (#1589) 2017-10-18 09:59:23 -07:00
c8405557a4 Remove Go1.6 support (#1492) 2017-10-04 13:57:10 -07:00
4e1a1ebe3a update markdown render (#1542) 2017-09-28 10:12:44 -07:00
a68137c927 Revert "Added localhost to net.Listen() calls to avoid macOS firewall dialog." (#1541)
This reverts commit c67cd636f91e849f8677733bcdd60ea8c15d4aa6.
2017-09-27 00:01:17 -07:00
c67cd636f9 Added localhost to net.Listen() calls to avoid macOS firewall dialog. (#1539) 2017-09-26 10:19:45 -07:00
1ea63c9e71 Fix to avoid annoying firewall dialog on macOS (#1499)
macOS throws up an annoying firewall dialog with the following
question every time you start the route_guide/server:

Do you want the application “server” to accept incoming network connections?

This simple fix of actually typing out `localhost` seems to fix
this problem.
2017-08-31 10:24:01 -07:00
2be1bca94f Update proto generation commands in example doc (#1481) 2017-08-28 12:27:18 -07:00
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
98bc2cec5b Use log instead of grpclog in routeguide example (#1395) 2017-07-31 10:40:59 -07:00
b31f0c6036 Assign testdata path to correct variable (#1397) 2017-07-27 16:02:51 -07:00
e64ff5d75c Do not call testdata.Path when defining flags (#1394) 2017-07-27 14:00:18 -07:00
ca9e0c3458 Add testdata package and unify testdata to only one dir (#1297) 2017-07-25 10:24:45 -07:00