mirror of https://github.com/status-im/consul.git
21 lines
392 B
Protocol Buffer
21 lines
392 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package testservice;
|
|
|
|
option go_package = "github.com/hashicorp/consul/agent/grpc/private/internal/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;
|
|
}
|