34140ff3e0
Previously, public referred to gRPC services that are both exposed on the dedicated gRPC port and have their definitions in the proto-public directory (so were considered usable by 3rd parties). Whereas private referred to services on the multiplexed server port that are only usable by agents and other servers. Now, we're splitting these definitions, such that external/internal refers to the port and public/private refers to whether they can be used by 3rd parties. This is necessary because the peering replication API needs to be exposed on the dedicated port, but is not (yet) suitable for use by 3rd parties.
21 lines
393 B
Protocol Buffer
21 lines
393 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package testservice;
|
|
|
|
option go_package = "github.com/hashicorp/consul/agent/grpc-internal/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;
|
|
}
|