File: example.proto

package info (click to toggle)
golang-gogottrpc 0.0~git20180205.d452837-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 252 kB
  • sloc: makefile: 2
file content (27 lines) | stat: -rw-r--r-- 494 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
syntax = "proto3";

package ttrpc.example.v1;

import "google/protobuf/empty.proto";
import "gogoproto/gogo.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;
}