open-consul/agent/grpc-middleware/testutil/testservice/simple.proto

24 lines
463 B
Protocol Buffer
Raw Normal View History

// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
syntax = "proto3";
package testservice;
option go_package = "github.com/hashicorp/consul/agent/grpc-internal/internal/testservice";
2022-05-24 17:14:45 +00:00
// 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;
}