Yash Handa
be202a2601
examples: add an example to illustrate the usage of stats handler ( #5657 )
2022-11-29 10:36:32 -08:00
Doug Fawley
3011eaf70e
test/tools: update staticcheck version to latest ( #5806 )
2022-11-18 13:51:43 -08:00
Doug Fawley
fefb3ec0c0
test/tools: update everything to latest versions except staticcheck ( #5805 )
2022-11-18 11:26:37 -08:00
Doug Fawley
50be6ae2f9
go.mod: update all dependencies ( #5803 )
2022-11-18 10:56:02 -08:00
Doug Fawley
824f44910d
go.mod: upgrade x/text to v0.4 to address CVE ( #5769 )
2022-11-07 07:51:22 -08:00
Jan Lamecki
54521b22e0
client: remove trailing null from unix abstract socket address ( #5678 )
2022-09-30 09:34:05 -07:00
RedHawker
182e9df160
Grab comment from proto file, similar to protoc-gen-go ( #5540 )
2022-09-06 12:35:40 -07:00
mitchsw
c402378755
doc: remove comment about obsolete GRPC_GO_RETRY env var ( #5495 )
2022-07-12 13:36:41 -07:00
Easwar Swaminathan
15739b5c88
health: split imports into healthpb and healthgrpc ( #5466 )
2022-06-24 13:31:35 -07:00
stepbystep2
de73b2b645
examples: improve error messages ( #5329 )
2022-05-02 12:02:47 -07:00
Zach Reyes
4e780933f8
xds: ignore routes with unsupported cluster specifiers ( #5269 )
2022-03-31 11:02:26 -07:00
Easwar Swaminathan
6131e9d46e
examples: regenerate certs to use SHA256 signing algorithm ( #5256 )
2022-03-21 10:41:21 -07:00
Shang Jian Ding
328efcc927
example: add mutual TLS example ( #5194 )
2022-02-24 10:28:58 -08:00
Eric Butler
ebc30b8fc3
reflection: use protobuf/reflect instead of go reflection, fix dynamic messages ( #5180 )
2022-02-15 11:01:42 -08:00
Appu
0e055491d5
Format directory/file references ( #5184 )
2022-02-09 11:29:47 -08:00
赵延
c44f627fd1
cleanup: replace grpc.WithInsecure with insecure.NewCredentials ( #5177 )
2022-02-09 11:17:46 -08:00
Thomas Hallgren
5b3768235a
Let helloworld example listen to all hosts ( #5089 )
...
This commit changes the address that the helloworld greeter_server is
listening to from "localhost:<port>" to just ":<port>", thus enabling
the server to be used in setups where the request stem from another
host.
Signed-off-by: Thomas Hallgren <thomas@tada.se>
2022-01-24 15:38:04 -08:00
Tiratom
0145b50cdc
use insecure.NewCredentials() instead of grpc.WithInsecure ( #5087 )
2022-01-12 14:19:03 -05:00
Doug Fawley
c285fc70e0
cmd/protoc-gen-go-grpc: update version for release ( #5070 )
2021-12-20 15:40:38 -08:00
Yuan Tang
23becb71f7
examples: Fix server port in route_guide example to work with client ( #4975 )
2021-11-16 11:49:29 -08:00
Hrishi Hiraskar
467630fc24
examples: remove usage of WithBlock in examples ( #4858 )
2021-11-01 11:06:39 -07:00
Doug Fawley
3b1d3e48c9
examples: update load balancing example to use loadBalancingConfig ( #4887 )
2021-10-19 16:47:48 -07:00
Easwar Swaminathan
01ed64857e
update go.mod to point to latest cncf/udpa repo ( #4884 )
2021-10-18 15:12:44 -07:00
Easwar Swaminathan
3bae5f5b65
xds: use protos from cncf/xds instead of cncf/udpa ( #4866 )
2021-10-14 16:51:55 -07:00
Easwar Swaminathan
ea41fbfa10
examples: unix abstract socket ( #4848 )
2021-10-11 14:55:45 -07:00
Easwar Swaminathan
2f3355d224
xds: update go-control-plane to latest ( #4737 )
2021-09-07 11:11:16 -07:00
Tobias Klauser
ed501aa1fd
xds/internal/resolver: update github.com/cespare/xxhash to v2 ( #4671 )
...
github.com/cespare/xxhash/v2 supports Go ≥ 1.11 and this package states
1.11 in its go.mod file. The only symbol used from the xxhash package is the
Sum64String func which still exists and works the same in v2.
This gets rid of two indirect dependencies.
2021-09-01 14:08:00 -04:00
Easwar Swaminathan
6bd8e8cf30
multiple: remove support for Go 1.11 ( #4700 )
2021-08-24 14:24:34 -07:00
Zach Reyes
633fbe4dfe
xds: generate per-request hash config selector ( #4525 )
...
* xds: generate per-request hash in config selector
2021-06-17 09:00:05 -04:00
dkkb
194dcc921a
example: improve hello world server with starting msg ( #4468 )
2021-05-26 11:17:27 -07:00
Zeke Lu
50c071e9b5
example: correct the default value for server_host_override ( #4407 )
2021-05-14 14:09:26 -07:00
Easwar Swaminathan
397adad6a0
update go.mod and go.sum to point to latest go-control-plane ( #4425 )
2021-05-12 15:52:15 -07:00
Easwar Swaminathan
7a6ab59115
multiple: go mod tidy to make vet happy ( #4337 )
2021-04-13 11:47:25 -07:00
Aliaksandr Mianzhynski
d6abfb4598
cmd/protoc-gen-go-grpc: add protoc and protoc-gen-go-grpc versions to top comment ( #4313 )
2021-04-09 16:30:59 -07:00
Easwar Swaminathan
2df4370b33
examples: update xds examples for PSM security ( #4256 )
2021-04-08 16:02:52 -07:00
Doug Fawley
d7737376c3
xds: implement fault injection HTTP filter (A33) ( #4236 )
2021-03-12 08:38:49 -08:00
Fagner Nunes Carvalho
fce74a94bd
cleanup: fix typo in Interceptor README ( #4249 )
2021-03-08 16:37:15 -08:00
Doug Fawley
29bf29e0ed
xds: add HTTP filter is_optional support (gRFC A39) ( #4221 )
2021-03-02 09:11:35 -08:00
Doug Fawley
f005af03c2
examples: delete profiling example since profiling support was rolled back ( #4182 )
2021-02-03 13:21:42 -08:00
Doug Fawley
938f6e2f75
cmd/protoc-gen-go-grpc: add gRPC-Go version comment and update release version ( #4152 )
2021-01-14 14:28:25 -08:00
Easwar Swaminathan
c638ab8ccd
Update envoyproxy/go-control-plane ( #4098 )
2020-12-11 09:14:07 -08:00
Edmond
8f3cc6cc26
protoc-gen-go-grpc: export grpc.ServiceDesc ( #4035 )
2020-11-23 14:56:57 -08:00
Easwar Swaminathan
9da74c039b
xds: Blank import supported certificate provider plugins. ( #4047 )
2020-11-20 16:46:45 -08:00
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