ttrpc/example/example.proto
Kazuyoshi Kato d240c5005f Use google.golang.org/protobuf instead of github.com/gogo/protobuf
This change replaces github.com/gogo/protobuf with
google.golang.org/protobuf, except for the code generators.

All proto-encoded structs are now generated from .proto files,
which include ttrpc.Request and ttrpc.Response.

Signed-off-by: Kazuyoshi Kato <katokazu@amazon.com>
2022-02-16 23:11:27 +00:00

27 lines
465 B
Protocol Buffer

syntax = "proto3";
package ttrpc.example.v1;
import "google/protobuf/empty.proto";
option go_package = "github.com/containerd/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;
}