Skip to content

Latest commit

 

History

History
 
 

route_guide

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

RouteGuide in grpc-elixir

Usage

  1. Install deps and compile
$ mix do deps.get, compile
  1. Run the server
$ mix run --no-halt
  1. Run the client
$ mix run priv/client.exs

Regenerate Elixir code from proto

  1. Modify the proto priv/route_guide.proto
  2. Install protoc here
  3. Install protoc-gen-elixir
mix escript.install hex protobuf
  1. Generate the code:
$ protoc -I priv --elixir_out=plugins=grpc:./lib/ priv/route_guide.proto

Refer to protobuf-elixir for more information.

Authentication

$ TLS=true mix run --no-halt
$ TLS=true mix run priv/client.exs

FAQ

  • How to change log level? Check out config/config.exs, default to warn
  • Use local grpc-elixir? Uncomment {:grpc, path: "../../"} in mix.exs
  • Why is output format of Feature & Point different from normal map? Check out lib/inspect.ex