2023-03-28 19:39:22 +01:00
|
|
|
// Copyright (c) HashiCorp, Inc.
|
|
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
2020-08-28 19:23:40 -04:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package testservice;
|
|
|
|
|
2022-07-13 16:33:48 +01:00
|
|
|
option go_package = "github.com/hashicorp/consul/agent/grpc-internal/internal/testservice";
|
2022-05-24 10:14:45 -07:00
|
|
|
|
2020-08-28 19:23:40 -04:00
|
|
|
// Simple service is used to test gRPC plumbing.
|
|
|
|
service Simple {
|
2022-05-23 10:37:52 -04:00
|
|
|
rpc Something(Req) returns (Resp) {}
|
|
|
|
rpc Flow(Req) returns (stream Resp) {}
|
2020-08-28 19:23:40 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
message Req {
|
2022-05-23 10:37:52 -04:00
|
|
|
string Datacenter = 1;
|
2020-08-28 19:23:40 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
message Resp {
|
2022-05-23 10:37:52 -04:00
|
|
|
string ServerName = 1;
|
|
|
|
string Datacenter = 2;
|
2022-03-22 12:40:24 +00:00
|
|
|
}
|