2020-08-28 23:23:40 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package testservice;
|
|
|
|
|
2022-07-13 15:33:48 +00:00
|
|
|
option go_package = "github.com/hashicorp/consul/agent/grpc-internal/internal/testservice";
|
2022-05-24 17:14:45 +00:00
|
|
|
|
2020-08-28 23:23:40 +00:00
|
|
|
// Simple service is used to test gRPC plumbing.
|
|
|
|
service Simple {
|
2022-05-23 14:37:52 +00:00
|
|
|
rpc Something(Req) returns (Resp) {}
|
|
|
|
rpc Flow(Req) returns (stream Resp) {}
|
2020-08-28 23:23:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message Req {
|
2022-05-23 14:37:52 +00:00
|
|
|
string Datacenter = 1;
|
2020-08-28 23:23:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message Resp {
|
2022-05-23 14:37:52 +00:00
|
|
|
string ServerName = 1;
|
|
|
|
string Datacenter = 2;
|
2022-03-22 12:40:24 +00:00
|
|
|
}
|