Commit Graph

40 Commits

Author SHA1 Message Date
Arvind Bright 8320224ff0
.*: revive from unused_parameters (#7577) 2024-08-30 10:41:30 -07:00
Clément Jean 02858ee506
deps: move from github.com/golang/protobuf to google.golang.org/protobuf/proto (#6919)
Co-authored-by: Arvind Bright <arvind.bright100@gmail.com>
Co-authored-by: Doug Fawley <dfawley@google.com>
2024-01-30 10:59:10 -08:00
Mikhail Mazurskiy 379a2f676c
*: add missing colon to errorf messages to improve readability (#5911) 2023-01-17 16:11:47 -08:00
Theodore Salvo f2fbb0e07e
Deprecate use of `ioutil` package (#5906)
Resolves https://github.com/grpc/grpc-go/issues/5897
2023-01-03 11:20:20 -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
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 44d73dff99
cmd/protoc-gen-go-grpc: rework service registration (#3828) 2020-08-25 09:28:01 -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
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
Doug Fawley 50c4579fc2
examples: add Unimplemented___Server to all example servers (#3071) 2019-10-04 10:54:09 -07:00
Nguyen Quang Huy 2773c7bbcf Fix styling (#2647)
Fix styling
2019-02-21 16:37:37 -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
Doug Fawley 04ea82009c
cleanup: replace "x/net/context" import with "context" (#2439) 2018-11-12 13:30:41 -08:00
Jan Tattermusch 0ff1b76450 routeguide: reimplement distance calculation 2018-03-22 12:52:22 +01:00
dfawley 45088c2971
examples: fix concurrent map accesses in route_guide server (#1752) 2017-12-18 10:21:30 -08: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
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
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
Tamir Duberstein ac90a026b6
*: go vet 2016-07-27 23:39:19 -04:00
jazzgal b4ad52a6ec Comment typo 2016-04-24 16:01:42 +07:00
iamqizhao 28d57dd1ec rename proto for route_guide example 2015-08-31 12:54:07 -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
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
Yasuhiro Matsumoto b76c21e4d0 Use Fatalf instead 2015-02-27 11:54:37 +09: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 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