Commit Graph

898 Commits

Author SHA1 Message Date
Ming-Chuan 73003f8527
Add BinderTransport example server app (#27067)
Some code are commented out because the server interface has not been
merged yet.

After this, user should be able to install both apps on Android device
and test if basic unary call works or not
2021-08-30 18:26:49 +08:00
Ming-Chuan 9da755a61e
Import binder transport channel create interface (#27007)
Also try use the API in example apk to make sure the binder transport
code and the rest of gRPC compiles with the Android toolchain

We will properly expose our interface later.
2021-08-20 13:03:21 +08:00
Hannah Shi 62b65c5a60
deleted require paths, update grpc to v1.39.0 (#26841) 2021-08-06 11:09:57 -07:00
Richard Belleville a48067c4c8
Replace StopIteration with return (#26861) 2021-08-03 11:08:31 -07:00
Lidi Zheng 6c6463e1cd
Add retry example for gRPC Python (#26829)
* Add retry example for gRPC Python

* Make sanity test happy && simplfy proto definition

* Fix a grammer issue
2021-07-29 17:31:05 -07:00
Nicolas Noble a325d7f77a
Pointing the protobuf submodule to the new URL (#26811)
* Pointing the protobuf submodule to the new URL

* Also changing WORKSPACE dependencies

* More references to the old URL...
2021-07-29 10:19:16 -07:00
Shaw c472a2a58c
Update greeter_client.js (#25802)
ReferenceError: parseArgs is not defined
2021-07-28 09:37:45 -07:00
Ming-Chuan 746eaf6c48
Add BinderTransport example app (#26747)
This commit adds an app that will be served as BinderTransport example
later.

Currently the app simply calls C++ function when button is pressed. In
the future the C++ function will run BinderTransport gRPC example
instead.

Tests not included in this commit, later we will add a build test to
CI to make sure this apk is always build-able. (This app will also be
used to make sure our BinderTransport implementation is compile-able
with Android toolchain, on GitHub) For now we exclude this target in
bazel build test.

Changes are made to WORKSPACE file in order to support android builds.

Build instructions are documented at
examples/android/binder/java/io/grpc/binder/cpp/example/README.md
2021-07-27 11:18:59 +08:00
Lidi Zheng 2231c2ba77
Introduce Python import sorting to our sanity test suite (#26768)
* Add isort_code.sh to sanity tests

* Run tools/distrib/isort_code.sh

* Fine tune the import order for relative imports

* Make pylint and project generation happy

* Fix a few corner cases

* Use --check instead of --diff

* The import order impacts test result somehow

* Make isort print diff and check output at the same time

* Let tools/run_tests/python_utils be firstparty library

* Run isort against latest HEAD
2021-07-26 12:31:21 -07:00
Lidi Zheng 933b10d2a8
Add a correct graceful shutdwon example for the asyncio API (#26622) 2021-07-08 10:58:58 -07:00
Vijay Pai 8aff94558c
De-experimentalize C++ callback API (#25728)
* De-experimentalize callback API

* Make FromServerContext based on ServerContextBase

* Fix lambda

* Fix headers

* De-experimentalize tests

* clang-format

* Fix consistency checks

* wip

* Fix const-ness of callback client read RPC requests

* Fix golden file

* Give full route_guide callback client example with Hold etc

* Complete example route-guide server

* De-experimentalize test services

* Omit unneeded using

* Remove some uses of non-experimental macro from test

* clang-format examples

* De-experimentalize async stub calls

* Remove experimental namespace use in qps, ubms

* De-experimentalize alarms, generic stubs, and context allocator

* De-experimentalize SetContextAllocator

* clang-format

* Fix conflicts

* Leave obsolete API in place until users can be migrated
2021-05-27 14:55:25 -07:00
Richard Belleville 7125bbe5a5
Add Python PSM security example (#26170)
* Add Python PSM security example

* Fix lint

* Add in maintenance port configuration

* Align CLI flags with Java

* Pylint
2021-05-05 15:57:38 -07:00
Yash Tibrewal a8ebadbe5f
Parse command-line args (#26161) 2021-05-04 09:32:56 -07:00
Yash Tibrewal 4c53304dcf
Add examples for xDS greeter client and server (#26157) 2021-05-03 23:26:41 -07:00
Hannah Shi 6769ce39f4
PHP: php server commit 4/n, add RpcServer, generator and server examples (#25640)
* add RpcServer and generator
add server examples: greeter and route guide

* php server generator xds client

* add generated stub

* fix clang format fail
2021-05-01 01:07:44 -07:00
Patrice Chalin 2c25e5336a
README for PHP examples: refer to grpc.io for details (#26060) 2021-04-28 13:20:39 +02:00
Vijay Pai ce16365421
clang-format C++ examples (#25764) 2021-03-22 10:23:52 -07:00
Esun Kim 343eb56df0
Added CMakeLists.txt to cpp/examples (#25692) 2021-03-17 19:59:23 -07:00
yulin liang 3bc612374c
Fix required a higher minimum deployment target of Auth Sample Test (#25736) 2021-03-17 10:50:00 -07:00
Daren McCulley fbc5194df6
replace deprecated addProtoService (#25536) 2021-03-03 10:34:51 -08:00
Yash Tibrewal f4e55b85bc Replace disrespectful term 2021-02-08 15:29:53 -08:00
Esun Kim b941a771e2
Merge pull request #25046 from veblush/route_guide_example
Added CMakeLists for route_guide example
2021-01-20 10:32:25 -08:00
Sergii Tkachenko 8db79e2e71 Python style: reformat code using updated yapf 0.30.0 2021-01-13 14:00:12 -05:00
Lidi Zheng a873c5a942
Merge pull request #25076 from lidizheng/aio-examples-3
Adding three more AsyncIO examples
2021-01-06 16:40:05 -08:00
Lidi Zheng e6dffc6fbe Adding three more AsyncIO examples
* Channelz or Debug
* Route guide
* Wait for ready
2021-01-06 10:52:39 -08:00
Stanley Cheung 436036d68a Upmerge from v1.34.x branch 2021-01-05 11:35:46 -08:00
Esun Kim e0ebe46ad3 Fix python examples 2020-12-23 09:23:32 -08:00
Esun Kim e7afadc255 Refactor examples BUILD files 2020-12-23 09:23:32 -08:00
Esun Kim 69bb5e328e Added CMakeLists for route_guide example 2020-12-22 13:44:35 -08:00
Lidi Zheng c515666a73
Merge pull request #24668 from lidizheng/example-async-bidi
Add async bidi-streaming example
2020-12-21 15:15:16 -08:00
Lidi Zheng f2d06b8458 Add async bidi-streaming example 2020-12-21 14:38:39 -08:00
Lidi Zheng 40a5a655af Polish and add AsyncIO examples
* Add type annotations
* Add test for asyncio auth example
* Use dynamic stubs to allow same code runs manually and under Bazel
* Add grpcio-tools as a Bazel dependency
* asyncio.run is not yet existed in 3.6
* Improve readability
2020-12-08 13:44:43 -08:00
Michael Lumish c3cee0713a Node xDS example: show error on failure, close client when done 2020-11-25 12:48:06 -08:00
Esun Kim 694cd98cf2
Merge pull request #24794 from chalin/patch-1
Examples README: add link to android example and fix link text
2020-11-23 15:34:38 -08:00
Michael Lumish 00ec631f52 Add a Node xDS example client 2020-11-23 12:44:31 -08:00
Michael Lumish 5aaacb538d Add target argument to Node examples 2020-11-23 12:40:32 -08:00
Patrice Chalin 48b24aa6da
Examples README: add link to android example and fix link text
Add a link to the android example and fix the link text (platforms are now served from another page).
2020-11-19 16:58:59 -05:00
Michael Lumish cbdcc5be77 Add target argument to Node examples 2020-11-19 13:57:37 -08:00
Michael Lumish 273e3cfb79 Update Node examples to use @grpc/grpc-js 2020-11-05 11:24:27 -08:00
Esun Kim 27a1c40f73 Reformat source 2020-10-21 15:40:01 -07:00
Richard Belleville de90ff64d5
Merge pull request #24478 from gnossen/runtime_protos_wkt
[gRPC Easy] Make Well-Known Types Available to Runtime Protos
2020-10-20 20:08:14 -07:00
Jan Tattermusch e2a346e466
Merge pull request #24425 from jtattermusch/modernize_helloworld_xamarin
Modernize C# HelloworldXamarin example
2020-10-20 14:14:36 +02:00
Richard Belleville 14d6850f5a And remove it too 2020-10-19 13:09:07 -07:00
Richard Belleville 3dad0eb862 Oops 2020-10-19 13:07:52 -07:00
Richard Belleville 897f97212a Add -x to shell script 2020-10-19 10:51:42 -07:00
Richard Belleville 7821040586 Modernize run_codegen script 2020-10-16 13:58:16 -07:00
Jan Tattermusch 7b694fc85d add copyright headers to Xamarin example 2020-10-16 17:30:36 +02:00
Jan Tattermusch 92eebcd110 modernize HelloworldXamarin example 2020-10-16 17:24:25 +02:00
Esun Kim 86050be0cf Clean up DEPLOYMENT_TARGET 2020-10-08 14:47:56 -07:00
Esun Kim be23ad0ed1
Merge pull request #24282 from veblush/ios-bump
Bump iOS and OSX version
2020-10-07 16:12:16 -07:00