Easwar Swaminathan
fa59d20167
pemfile: Implement certprovider config parsing API ( #4023 )
2020-11-17 15:36:28 -08:00
Timothy Gu
20636e76a9
protobuf: update protoc to latest version ( #4038 )
...
Presently, protoc 3.3.0 (released in 2017) is still being used. This
commit updates the vet.sh script as well as existing generated files to
use protoc 3.14.0 instead.
The only concrete change this brings is updated import paths of
Timestamp and Duration types. However, in practice this is a no-op,
since the types themselves are already aliased to the new import path:
- https://pkg.go.dev/github.com/golang/protobuf@v1.4.3/ptypes/duration#Duration
- https://pkg.go.dev/github.com/golang/protobuf@v1.4.3/ptypes/timestamp#Timestamp
2020-11-16 16:59:46 -08:00
Chongyang Shi
c6fa12175f
Fix a typo in interceptor example's README.md ( #4014 )
2020-11-04 09:28:19 -08:00
Doug Fawley
4e8458e5c6
protobuf: update all generated code to google.golang.org/protobuf ( #3932 )
2020-10-21 16:05:44 -07:00
Doug Fawley
9519efffeb
cmd/protoc-gen-go-grpc: use grpc.ServiceRegistrar instead of *grpc.Server ( #3968 )
2020-10-20 13:02:25 -07:00
Easwar Swaminathan
06c094c3ab
xds/client: Process security configuration from Cluster resource ( #3931 )
2020-10-08 15:50:51 -07:00
Easwar Swaminathan
866de13d56
meshca: CertificateProvider plugin implementation. ( #3871 )
2020-09-29 17:40:30 -07:00
Doug Fawley
02cd07d9bb
cmd/protoc-gen-go-grpc: revert to interface-based service registration ( #3911 )
2020-09-29 15:17:06 -07:00
Doug Fawley
ff9dd65c90
protoc-gen-go-grpc: generate interfaces optionally; remove NewFooService ( #3876 )
2020-09-16 10:15:56 -07:00
Doug Fawley
d31b671000
cmd/protoc-gen-go-grpc: call interceptor even if handler is unset ( #3849 )
2020-08-26 16:05:36 -07:00
Doug Fawley
44d73dff99
cmd/protoc-gen-go-grpc: rework service registration ( #3828 )
2020-08-25 09:28:01 -07:00
Menghan Li
1dbe29f669
examples: update grpc version ( #3813 )
2020-08-13 14:26:49 -07:00
Easwar Swaminathan
fd393c8989
testdata: Update testdata certs. ( #3786 )
...
* This will be used in certprovider tests where we would want more than one server and client certs.
* Also, updated existing usages of these certs to point to the new files.
* Also copy over the required certs/key files. This avoids the example gomodule from depending on gRPC testdata package which should be able to change independently.
* Fix interop test's SAN.
2020-08-05 09:55:07 -07:00
Doug Fawley
bc714cd8ae
Remove Go 1.9 / AppEngine support; assume go1.12 build tag ( #3767 )
2020-07-30 16:15:35 -07:00
Achyuta Das
b2e49701d9
examples: break from 'PerRPCCredsCallOption' status checking loop ( #3772 )
...
If *grpc.PerRPCCredsCallOption is not found in the option array then change credentialConfigStatus to true and break from the loop. No need to iterate further.
2020-07-30 13:43:56 -07:00
Menghan Li
d6c4e49aab
internal: delete mock from examples ( #3766 )
2020-07-29 13:03:27 -07:00
Menghan Li
08e6bb1878
examples: change xds example to import xds instead of experimental ( #3745 )
2020-07-16 15:42:53 -07:00
Patrice Chalin
a6c3c6968e
examples: cleanup README.md ( #3738 )
2020-07-14 16:59:29 -07:00
Patrice Chalin
31d22c78fb
examples: use grpc v1.30.0 rather than v1.30.0-dev.1 ( #3710 )
2020-06-25 14:28:39 -07:00
Patrice Chalin
7a808837ae
examples: make test script output easier to read ( #3711 )
2020-06-25 10:40:16 -07:00
Zou Nengren
4e63bcab52
test: replace manual.GenerateAndRegisterManualResolver with grpc.WithResolvers ( #3700 )
2020-06-23 09:49:44 -07:00
Doug Fawley
ad51f572fd
protoc-gen-go-grpc: add requirement of embedding UnimplementedServer in services ( #3657 )
2020-06-04 10:56:13 -07:00
Damien Neil
f818fd2a02
all: regenerate .pb.go files using cmd/protoc-gen-go-grpc ( #3646 )
...
Change regenerate.sh to use cmd/protoc-gen-go-grpc and rerun it.
This splits the gRPC service definitions into separate files, but
otherwise has no changes.
2020-05-28 13:52:49 -07:00
Menghan Li
30c53e745c
xds: move balancer/resolver registation to package xds ( #3640 )
2020-05-27 10:14:25 -07:00
Menghan Li
96e5c84cc8
xds: rename resolver scheme to xds ( #3621 )
...
https://github.com/grpc/grpc-go/pull/3621
2020-05-19 10:04:23 -07:00
Matjaz Debelak
42e450fade
doc: update "A short introduction to Channelz" url ( #3583 )
2020-05-07 13:17:02 -07:00
Doug Fawley
4eb418e5b2
balancer: move Balancer and Picker to V2; delete legacy API ( #3431 )
2020-04-28 14:52:49 -07:00
Damien Neil
15653fec60
all: refactor .pb.go generation ( #3451 )
...
Replace various //go:generate lines and regenerate.sh scripts with a
single, top-level regenerate.sh that regenerates all .pb.go files.
Placing generation in a single script ensures that all files are
generated with similar parameters. The new regenerate.sh uses the
protoc-gen-go version defined in test/tools/go.mod and automatically
handles new .proto files as they are added.
Do some minor refactoring on .proto files: Every file now has a
go_package option (which will be required by a future version of the
code generator), and file imports are all relative to the repository
root.
2020-04-24 08:54:03 -07:00
Patrice Chalin
03def2a1f3
examples: add go.mod to make examples a separate module ( #3546 )
2020-04-21 10:55:54 -07:00
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
Tariq Ibrahim
8e6052a06f
fix typo in flag description ( #3520 )
2020-04-13 13:55:48 -07:00
Mya Pitzeruse
3038e58ed2
examples: add example to show how to use the health service ( #3381 )
2020-04-08 10:38:37 -07:00
Menghan Li
ba34a8c58b
doc: fix link in xds readme to point gRFC ( #3466 )
2020-03-18 14:06:38 -07:00
Menghan Li
224056d331
xds: add reflection and health service to example server ( #3403 )
2020-02-27 13:17:17 -08:00
Menghan Li
0ab367d24a
examples: add client/server to be used for xds examples ( #3362 )
2020-02-06 14:51:54 -08: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
Adhityaa Chandrasekar
01d201eb8d
examples: add profiling ( #3265 )
2019-12-20 15:33:45 -08:00
Amanda Bozigian
4323b783fd
Update README.md ( #3231 )
2019-12-11 13:12:25 -08:00
Doug Fawley
2cb07fcd90
resolver: rename Option to Options, leaving type aliases for now ( #3175 )
2019-11-12 15:23:46 -08:00
Doug Fawley
95c3759457
examples: change wait into job polling loop after killing tests ( #3168 )
2019-11-08 14:46:36 -08:00
Doug Fawley
caaa764950
examples: enable debugging to help determine why tests are hanging ( #3166 )
2019-11-08 09:53:16 -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
Doug Fawley
4ec516e589
interop, examples: use localhost instead of 127.0.0.1 ( #3124 )
2019-10-28 14:41:46 -07:00
Michael Le
b53233ce4c
examples: add regression test script to hello world example ( #3092 )
2019-10-21 13:00:46 -07:00
Quang Le Hong
d08614fd39
examples: add UnimplementedGreeterServer in debugging example ( #3079 )
2019-10-05 15:38:30 -07:00
Doug Fawley
50c4579fc2
examples: add Unimplemented___Server to all example servers ( #3071 )
2019-10-04 10:54:09 -07:00
AbserAri
3778847a73
examples: create an example for enabling and configuring retry ( #3028 )
2019-10-03 16:04:43 -07:00
Adhityaa Chandrasekar
230def7691
docs: fix debugging README typo ( #3037 )
2019-09-24 16:00:30 -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
lyuxuan
712624e686
examples: note about ALTS special access permission on GCP ( #2846 )
2019-06-20 13:39:07 -07:00
jbpratt
f7e18a395d
examples: fixed spelling mistake in route_guide client example ( #2873 )
2019-06-19 10:24:51 -07:00
Doug Fawley
289eb50d88
internal: clean up README ( #2764 )
2019-04-11 10:11:17 -07:00
Doug Fawley
3910b873d3
bar: add ability to update resolver state atomically and pass directly to the balancer ( #2693 )
2019-03-22 10:48:55 -07:00
Nguyen Quang Huy
871b88ce2e
doc: fix typos ( #2655 )
2019-02-25 10:31:22 -08:00
Nguyen Quang Huy
9c297a48bb
examples: remove duplicated words ( #2654 )
2019-02-25 10:07:04 -08:00
Nguyen Quang Huy
2773c7bbcf
Fix styling ( #2647 )
...
Fix styling
2019-02-21 16:37:37 -08:00
Muhammad Falak R Wani
ae7b4f21da
examples: correct typo in keepalive example ( #2645 )
2019-02-21 13:09:24 -08: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
Doug Fawley
29c406a5bd
examples: add keepalive example ( #2637 )
2019-02-14 16:58:00 -08:00
Menghan Li
23ef1279c1
doc: fix broken link in auth doc ( #2613 )
2019-02-07 13:26:12 -08:00
Menghan Li
6086f8d68f
examples: reflection ( #2594 )
2019-01-25 15:35:01 -08:00
Doug Fawley
9572bbe0f9
cleanup: remove unused symbols ( #2581 )
2019-01-17 10:14:45 -08:00
Doug Fawley
59acad4c45
cleanup: more simplifications ( #2574 )
2019-01-16 13:07:56 -08:00
lyuxuan
c71aa62423
example: interceptor ( #2541 )
...
fix #2483
2019-01-02 10:33:06 -08:00
Menghan Li
36f3126920
example: name_resolving ( #2514 )
2018-12-27 14:30:17 -08:00
Menghan Li
2197c7b0de
example: load_balancing ( #2504 )
2018-12-27 14:29:52 -08:00
lyuxuan
0a3dc64b95
example: debugging ( #2536 )
...
fixes #2491
2018-12-27 14:03:13 -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
Can Guler
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
Doug Fawley
f286604fb2
example: cancellation ( #2525 )
2018-12-21 15:45:49 -08:00
lyuxuan
2cb2074db0
example: authentication ( #2531 )
2018-12-21 14:43:20 -08:00
Doug Fawley
adac1aeabd
example: compression ( #2527 )
2018-12-21 13:55:59 -08:00
Can Guler
30155c0ba1
example: errors ( #2521 )
...
* Adds readme.
* Fills readme.
* Adds readme.
2018-12-20 17:55:12 -08:00
Menghan Li
463950a151
internal: example flag.Parse() and comments ( #2526 )
2018-12-20 12:43:38 -08:00
lyuxuan
d9bc55b745
example: encryption ( #2524 )
...
fixes #2487
2018-12-19 16:45:46 -08:00
Can Guler
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
Can Guler
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
Menghan Li
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
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