You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* More didactic documentation
* Some adjusts
* Added pontuation
* Added link
* Added protobuf compilation example
* Apply suggestions from code review
---------
Co-authored-by: Paulo Valente <16843419+polvalente@users.noreply.github.com>
Copy file name to clipboardExpand all lines: README.md
+123-8Lines changed: 123 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,9 @@ An Elixir implementation of [gRPC](http://www.grpc.io/).
13
13
14
14
-[Installation](#installation)
15
15
-[Usage](#usage)
16
+
-[Simple RPC](#simple-rpc)
17
+
-[HTTP Transcoding](#http-transcoding)
18
+
-[Start Application](#start-application)
16
19
-[Features](#features)
17
20
-[Benchmark](#benchmark)
18
21
-[Contributing](#contributing)
@@ -35,9 +38,42 @@ The package can be installed as:
35
38
36
39
## Usage
37
40
38
-
1.Generate Elixir code from proto file as [protobuf-elixir](https://github.com/tony612/protobuf-elixir#usage) shows(especially the `gRPC Support` section).
41
+
1.Write your protobuf file:
39
42
40
-
2. Implement the server side code like below and remember to return the expected message types.
43
+
```protobuf
44
+
syntax = "proto3";
45
+
46
+
package helloworld;
47
+
48
+
// The request message containing the user's name.
2. Then generate Elixir code from proto file as [protobuf-elixir](https://github.com/tony612/protobuf-elixir#usage) shows (especially the `gRPC Support` section) or using [protobuf_generate](https://hex.pm/packages/protobuf_generate) hex package. Example using `protobuf_generate` lib:
2. Add protoc plugin dependency and compile your protos using [protobuf_generate](https://github.com/drowzy/protobuf_generate) hex [package](https://hex.pm/packages/protobuf_generate):
0 commit comments