mirror of
https://github.com/status-im/consul.git
synced 2025-01-13 15:26:48 +00:00
26f4ea3f01
* Install `buf` instead of `protoc` * Created `buf.yaml` and `buf.gen.yaml` files in the two proto directories to control how `buf` generates/lints proto code. * Invoke `buf` instead of `protoc` * Added a `proto-format` make target. * Committed the reformatted proto files. * Added a `proto-lint` make target. * Integrated proto linting with CI * Fixed tons of proto linter warnings. * Got rid of deprecated builtin protoc-gen-go grpc plugin usage. Moved to direct usage of protoc-gen-go-grpc. * Unified all proto directories / go packages around using pb prefixes but ensuring all proto packages do not have the prefix.
19 lines
300 B
Protocol Buffer
19 lines
300 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package testservice;
|
|
|
|
// Simple service is used to test gRPC plumbing.
|
|
service Simple {
|
|
rpc Something(Req) returns (Resp) {}
|
|
rpc Flow(Req) returns (stream Resp) {}
|
|
}
|
|
|
|
message Req {
|
|
string Datacenter = 1;
|
|
}
|
|
|
|
message Resp {
|
|
string ServerName = 1;
|
|
string Datacenter = 2;
|
|
}
|