Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 25-Aug-2020 | - | ||||
client/ | H | 25-Aug-2020 | - | 195 | 146 | |
mock_routeguide/ | H | 25-Aug-2020 | - | 294 | 221 | |
routeguide/ | H | 25-Aug-2020 | - | 785 | 601 | |
server/ | H | 25-Aug-2020 | - | 848 | 782 | |
testdata/ | H | 25-Aug-2020 | - | 602 | 601 | |
README.md | H A D | 25-Aug-2020 | 871 | 36 | 25 |
README.md
1# Description 2The route guide server and client demonstrate how to use grpc go libraries to 3perform unary, client streaming, server streaming and full duplex RPCs. 4 5Please refer to [gRPC Basics: Go](https://grpc.io/docs/tutorials/basic/go.html) for more information. 6 7See the definition of the route guide service in routeguide/route_guide.proto. 8 9# Run the sample code 10To compile and run the server, assuming you are in the root of the route_guide 11folder, i.e., .../examples/route_guide/, simply: 12 13```sh 14$ go run server/server.go 15``` 16 17Likewise, to run the client: 18 19```sh 20$ go run client/client.go 21``` 22 23# Optional command line flags 24The server and client both take optional command line flags. For example, the 25client and server run without TLS by default. To enable TLS: 26 27```sh 28$ go run server/server.go -tls=true 29``` 30 31and 32 33```sh 34$ go run client/client.go -tls=true 35``` 36