Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/4ndr/route_guide_grpc
https://github.com/4ndr/route_guide_grpc
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/4ndr/route_guide_grpc
- Owner: 4ndr
- Created: 2023-03-02T12:02:15.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-02T12:06:19.000Z (almost 2 years ago)
- Last Synced: 2024-05-27T22:24:40.749Z (7 months ago)
- Language: Go
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Description
The route guide server and client demonstrate how to use grpc go libraries to
perform unary, client streaming, server streaming and full duplex RPCs.Please refer to [gRPC Basics: Go](https://grpc.io/docs/tutorials/basic/go.html) for more information.
See the definition of the route guide service in `routeguide/route_guide.proto`.
# Run the sample code
To compile and run the server, assuming you are in the root of the `route_guide`
folder, i.e., `.../examples/route_guide/`, simply:```sh
$ go run server/server.go
```Likewise, to run the client:
```sh
$ go run client/client.go
```# Optional command line flags
The server and client both take optional command line flags. For example, the
client and server run without TLS by default. To enable TLS:```sh
$ go run server/server.go -tls=true
```and
```sh
$ go run client/client.go -tls=true
```