您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

1234567891011121314151617181920212223242526272829303132333435
  1. # Description
  2. The route guide server and client demonstrate how to use grpc go libraries to
  3. perform unary, client streaming, server streaming and full duplex RPCs.
  4. Please refer to [gRPC Basics: Go](https://grpc.io/docs/tutorials/basic/go.html) for more information.
  5. See the definition of the route guide service in routeguide/route_guide.proto.
  6. # Run the sample code
  7. To compile and run the server, assuming you are in the root of the route_guide
  8. folder, i.e., .../examples/route_guide/, simply:
  9. ```sh
  10. $ go run server/server.go
  11. ```
  12. Likewise, to run the client:
  13. ```sh
  14. $ go run client/client.go
  15. ```
  16. # Optional command line flags
  17. The server and client both take optional command line flags. For example, the
  18. client and server run without TLS by default. To enable TLS:
  19. ```sh
  20. $ go run server/server.go -tls=true
  21. ```
  22. and
  23. ```sh
  24. $ go run client/client.go -tls=true
  25. ```