...
1syntax = "proto3";
2
3package ttrpc.example.v1;
4
5import "google/protobuf/empty.proto";
6
7option go_package = "github.com/containerd/ttrpc/example;example";
8
9service Example {
10 rpc Method1(Method1Request) returns (Method1Response);
11 rpc Method2(Method1Request) returns (google.protobuf.Empty);
12}
13
14message Method1Request {
15 string foo = 1;
16 string bar = 2;
17}
18
19message Method1Response {
20 string foo = 1;
21 string bar = 2;
22}
23
24message Method2Request {
25 string action = 1;
26}
View as plain text