-
Notifications
You must be signed in to change notification settings - Fork 1
/
metaroute.proto
43 lines (38 loc) · 1010 Bytes
/
metaroute.proto
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
syntax = "proto3";
package metaroute;
option go_package = "github.com/cubex/proto-go/metaroute";
message HTTPRequest {
string host = 1;
string path = 2;
string method = 3;
message HTTPParameter {
repeated string values = 1;
}
map<string, HTTPParameter> post_params = 4;
string query_string = 5;
map<string, HTTPParameter> headers = 6;
string body = 7;
string language = 8;
string content_type = 9;
string project_id = 10;
message UserInformation {
string user_id = 1;
string user_fid = 2;
string name = 3;
map<string, string> meta = 4;
}
UserInformation user = 11;
}
message HTTPResponse {
int32 status_code = 1;
string body = 2;
string content_type = 3;
string language = 4;
message HTTPHeaderParameter {
repeated string values = 1;
}
map<string, HTTPHeaderParameter> headers = 5;
}
service MetaRoute {
rpc HandleHTTPRequest (HTTPRequest) returns (HTTPResponse);
}