ttrpc/example/example.proto
Stephen J Day bd8c759c72
ttrpc: update examples after name change
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2017-11-15 17:09:36 -08:00

30 lines
572 B
Protocol Buffer

syntax = "proto3";
package ttrpc.example.v1;
import "google/protobuf/any.proto";
import "google/protobuf/empty.proto";
import "gogoproto/gogo.proto";
import "google/protobuf/timestamp.proto";
option go_package = "github.com/stevvooe/ttrpc/example;example";
service Example {
rpc Method1(Method1Request) returns (Method1Response);
rpc Method2(Method1Request) returns (google.protobuf.Empty);
}
message Method1Request {
string foo = 1;
string bar = 2;
}
message Method1Response {
string foo = 1;
string bar = 2;
}
message Method2Request {
string action = 1;
}