-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
and one for the server to client communication ```FromServer``` . The fields in the message are identical in this case though; the `name` is for the user's name and the body is for the user's message. To generate the service interface, we need to define **RPC** methods in the `chat.proto` file. In this example, we have defined only one RPC method i.e.`ChatService`. The `ChatService` method will be called by clients to set up bidirectional gRPC streams between client and server. ### Compile protobuf file `chat.proto` Now that we have our `chat.proto` file is ready. Next step is to compile the `chat.proto` file to generate the compiled `*.pb.go` file with **Interfaces** that we will be using to send and receive messages. Before you proceed, please ensure that you have installed the following in your system, and both **protoc** and **protoc-gen-go** are in system $PATH: > - [protobuf compiler](https://github.com/protocolbuffers/protobuf/releases) > - Golang Protobuf plugin: ```go install google.golang.org/protobuf/cmd/protoc-gen-go``` Now, run the command below in your preferred shell with PWD as your project root directory to generate golang code referring to `chat.proto` file. ```bash $ protoc --go_out=plugins=grpc:chatserver chat.proto
protobuf compiler, grpc.io