...
1syntax = "proto3";
2
3package echo;
4
5option go_package = "./kat";
6
7service EchoService {
8 rpc Echo(EchoRequest) returns (EchoResponse) {}
9}
10
11message EchoRequest {
12 string data = 1;
13}
14
15message EchoResponse {
16 string backend = 1;
17
18 Request request = 2;
19
20 Response response = 3;
21}
22
23message Response {
24 map<string, string> headers = 1;
25}
26
27message Request {
28 map<string, string> headers = 1;
29
30 TLS tls = 2;
31}
32
33message TLS {
34 bool enabled = 1;
35
36 // TODO(gsagula): may need these fields in the future.
37 //
38 // version
39 // negotiated-protocol
40 // server-name
41}
42
43
44
45
46
47
View as plain text