Commit Graph

214 Commits

Author SHA1 Message Date
Menghan Li 9d925ce589
examples: metadata (#2500) 2018-12-13 14:45:14 -08:00
Menghan Li a3af876a09
internal: document example/echo proto (#2517) 2018-12-10 14:56:32 -08:00
Menghan Li 187e357ac1
examples: multiplex (#2477) 2018-12-06 14:02:16 -08:00
Menghan Li 49616eb1a1
examples: add echo proto (#2505) 2018-12-06 10:40:29 -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
dfawley 247a5d4487
Fix typos (#2020) 2018-04-24 16:09:35 -07:00
Eno Compton d27df52a27 documentation: add OAuth2 doc and example (#2003) 2018-04-18 11:25:19 -07:00
Jan Tattermusch 0ff1b76450 routeguide: reimplement distance calculation 2018-03-22 12:52:22 +01:00
Eno Compton 5415d18359 Add documentation and example of adding details to errors (#1915) 2018-03-21 08:56:43 -07:00
Menghan Li f0a1202acd examples: Replace context.Background with context.WithTimeout (#1877) 2018-02-28 15:01:36 -08:00
dfawley 82e9f61ddd
Use keyed fields for struct initializers (#1829) 2018-01-24 10:45:49 -08:00
dfawley 45088c2971
examples: fix concurrent map accesses in route_guide server (#1752) 2017-12-18 10:21:30 -08:00
cmceniry 580defabfe Fix grpc basics link in route_guide example (#1713) 2017-12-06 15:11:16 -08:00
Menghan Li 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
Shual Liu c91118c8fa Update examples/README.md (#1629) 2017-10-30 10:54:07 -07:00
dfawley 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
dfawley 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
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
Hein Meling 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
kkishi 2be1bca94f Update proto generation commands in example doc (#1481) 2017-08-28 12:27:18 -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
Menghan Li 98bc2cec5b Use log instead of grpclog in routeguide example (#1395) 2017-07-31 10:40:59 -07:00
Menghan Li b31f0c6036 Assign testdata path to correct variable (#1397) 2017-07-27 16:02:51 -07:00
Menghan Li 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
Seiichi Uchida ce03e9cc71 Fix a typo in examples/gotutorial.md (#1374) 2017-07-17 10:25:45 -07:00
Mehrdad Afshari 93166a0b0b Canonicalize https://grpc.io as the preferred URL prefix 2017-07-10 16:28:39 -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
Steven Santos Erenst a113590521 Update references to route_guide.proto to use new directory name (#1270)
route_guide.proto used to be in a directory called proto. It was renamed
to routeguide but the code/README still referred to the previous
directory name.

Signed-off-by: Steven Erenst <stevenerenst@gmail.com>
2017-05-31 14:16:25 -07:00
MakMukhi 074dbfbc52 Add doc and example for mocking streaming RPCs (#1230)
* Example code for mocking streams
* Added another expectation on the stream
* Documentation for mocking streaming RPCs
2017-05-19 13:36:45 -07:00
dfawley 68a5d50f45 Fix go buildable source file problem (#1213) 2017-05-02 15:55:05 -07:00
Santiago Castro 6914ab1e33 Fix broken Markdown headings in examples/gotutorial.md (#1189) 2017-04-18 10:54:52 -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
Thomas Habets c3d1b960a6 Fix broken markdown 2016-11-07 17:35:02 +00:00
Qi Zhao 777daa17ff Merge pull request #941 from MakMukhi/mmukhi_update_server_relection
update pre-generated code and server reflection code to comply with the change to the grpc g…
2016-11-03 16:04:21 -07:00
Mahak Mukhi 883bfc7bc8 pb.go file update 2016-10-28 12:37:56 -07:00
thinkerou 2c3ef6c75a fix go version 2016-10-25 21:11:05 +08: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
陈小玉 9102dd4691 fix gotutorial.md error link
fix route_guide proto link
2016-07-29 11:29:02 +08:00
Tamir Duberstein ac90a026b6
*: go vet 2016-07-27 23:39:19 -04:00
Menghan Li a6bacfe42c Fix go vet 2016-06-29 13:36:10 -07:00
Menghan Li abe672d5ed Update generated files 2016-06-10 14:20:04 -07:00
Qi Zhao 88aeffff97 Merge pull request #720 from menghanl/update_generated_files
Update generated proto files and Makefile
2016-06-10 11:45:47 -07:00
Menghan Li 0da018f37e Update generated files 2016-06-09 15:02:17 -07:00
Menghan Li 59486d9c17 Rename TransportAuthenticator to TransportCredentials 2016-06-08 11:19:25 -07:00
jazzgal b4ad52a6ec Comment typo 2016-04-24 16:01:42 +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
Feng Xiao d89e41fc99 Fix the link to protoc installation instructions.
To install protoc, users should follow instructions in the README.md
file (INSTALL.txt has been removed because it misses crucial info
and confuses users).
2016-01-07 13:59:55 -08:00
iamqizhao ca78069909 fix a typo 2015-11-18 10:57:30 -08:00
Julien Boeuf cbff74bfce Patching the rest of the test certs in the repo. 2015-11-11 15:27:42 -08:00
iamqizhao bf42086a4b regenerated the code for route_guide.proto 2015-10-29 14:26:16 -07: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
luan-cestari d0ea36f144 Updated the path on the last command
The last command seems to reflect the path used on the first public commit (which the helloworld.proto file was under  examples/helloworld/proto directory and then it was moved to examples/helloworld/helloworld/helloworld.proto)
2015-09-23 15:27:50 -03:00
LisaFC 66a18cfe4f fixed broken link to helloworld.proto 2015-09-21 15:31:59 +01:00
Saulius Gurklys 2ebbb6b455 Fix: Read() -> Recv()
I believe, there is stream.Recv() not stream.Read(), in RecordRoute(), isn't it?
2015-09-17 22:31:54 +03:00
Qi Zhao 3255a5521c Merge pull request #343 from philips/fix-go-getting-started
Fix go getting started
2015-09-16 22:42:34 -07:00
Brandon Philips 853dbe54a6 examples: link to grpc.io
Instead of linking directly to github link to the grpc.io website.
2015-09-16 18:04:08 -07:00
Brandon Philips 0f70401216 examples: README: use the new go package prefix
This doesn't work since the package now lives at google.golang.org
2015-09-16 17:45:33 -07:00
Brandon Philips 2b1d73a5f7 examples: README: remove sh tags
The markdown renderer for grpc.io doesn't know what to do with the tags
with the syntax highlighting tag like:

```
```sh
```

See http://www.grpc.io/docs/installation/go.html
2015-09-16 17:44:00 -07:00
Brandon Philips 5f818810e5 examples: README: fix trailing whitespace 2015-09-16 17:42:56 -07:00
Qi Zhao 804c8f1ecb Merge pull request #331 from chrjen/chrjen-patch-1
Fixed README.md in examples
2015-09-08 10:15:36 -07:00
LisaFC 535f5d0f45 fixed broken link to old tutorial location 2015-09-08 14:23:55 +01:00
chrjen fca363e35b Fixed README.md
Fixed the install instructions as it was left unchanged after a folder restructuring, making installing not work.
2015-09-07 14:26:10 +02:00
iamqizhao 28d57dd1ec rename proto for route_guide example 2015-08-31 12:54:07 -07:00
iamqizhao 72a3b4a331 fix helloworld example 2015-08-27 19:20:52 -07:00
Qi Zhao 158260f5a2 Merge pull request #308 from stanley-cheung/move_grpc_common_examples
Move grpc common examples
2015-08-27 19:12:35 -07:00
Stanley Cheung 322d9cf0e2 rearrange helloworld example folder structure 2015-08-27 18:57:12 -07:00
iamqizhao 100ca6a0da fix benchmark, interop and examples 2015-08-27 17:32:57 -07:00
Stanley Cheung bb34a2f320 add back protos and update references 2015-08-27 16:22:11 -07:00
Stanley Cheung 1373219acd fix link 2015-08-27 15:57:03 -07:00
Stanley Cheung 8740786e5b change all references of grpc-common to examples 2015-08-27 15:55:36 -07:00
Stanley Cheung f26e2dbd6b move grpc-common examples to right location 2015-08-27 15:42:22 -07:00
David Symonds e4a76146b2 Remove unnecessary import rename of the proto support package. 2015-06-24 11:36:31 +10:00
iamqizhao 3617cd5ab3 revert handshaker changes 2015-05-12 17:59:20 -07:00
Peter Edge 7c025e8694 move log package references to grpclog 2015-05-09 11:43:59 +02:00
Peter Edge 101c1e1935 change log package references to grpc/log 2015-05-09 01:16:40 +02:00
iamqizhao 0f85408fd4 Eliminate proto.Unmarshal in the generated code 2015-04-27 14:47:09 -07:00
iamqizhao 2d13f82261 fix a typo 2015-03-25 15:29:01 -07:00
iamqizhao 8b08b2d7b2 Interface change to accommodate the support of non-protobuf data formats 2015-03-25 15:18:07 -07:00
Daniel Wang 9ff931f934 Small fix to client.go 2015-03-04 15:44:58 -08:00
Daniel Wang d83ccd2feb Use Fatalf instead 2015-03-04 14:57:51 -08:00
Daniel Wang 84451c554b Sync with upstream 2015-03-01 17:12:39 -08:00
Daniel Wang 46f39d3ebd Cosmetic updates to the route guide example 2015-03-01 17:05:46 -08:00
Brett Morgan 786d10d0a3 Minor typo 2015-02-28 14:29:36 +11:00
Yasuhiro Matsumoto b76c21e4d0 Use Fatalf instead 2015-02-27 11:54:37 +09:00
iamqizhao 594d70fc4b add route_guide.pb.go because it is required by travis 2015-02-26 18:43:16 -08:00
Jayant Kolhe 9ac8d7142c Update README.md
Adding link to go tutorial
2015-02-26 05:16:57 -08:00
iamqizhao 2b993cd479 rename the convenience function to set TLS creds 2015-02-25 22:57:07 -08:00
Daniel Wang 385ff1a296 Remove generated code from source 2015-02-25 15:52:16 -08:00
Daniel Wang 9c8fb9517b Fix README 2015-02-25 15:45:56 -08:00
Daniel Wang d58af39ead Change tls_server_name to server_host_override and improve README 2015-02-25 15:43:26 -08:00
Daniel Wang 401343c0dc Fix typos in comments 2015-02-25 15:10:15 -08:00
Daniel Wang a4b32d7c6c Use Sprintf instead of concatenation 2015-02-25 12:11:38 -08:00
Daniel Wang 8fd7702f97 Make route guide implementation more go idiomatic 2015-02-25 12:08:12 -08:00
Daniel Wang a94c062d9b Fix README 2015-02-24 12:41:18 -08:00
Daniel Wang 7ffe7b2473 Use the golang import path 2015-02-24 12:40:48 -08:00
Daniel Wang 3041c94cd0 Add an implementation of route guide server and client 2015-02-24 12:30:01 -08:00