-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebflow.proto
79 lines (67 loc) · 1.37 KB
/
webflow.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
syntax = "proto3";
import "google/protobuf/wrappers.proto";
option go_package = "github.com/cloud66/webflow";
package cloud66.webflow;
message Client {
string family = 1;
string major = 2;
string minor = 3;
string patch = 4;
}
message OS {
string family = 1;
string major = 2;
string minor = 3;
string patch = 4;
string patch_minor = 5;
}
message Device {
string family = 1;
string brand = 2;
string model = 3;
}
message UserAgent {
Client client = 1;
OS os = 2;
Device device = 3;
}
message Request {
string user_agent_raw = 1;
UserAgent user_agent = 2;
string url = 3;
string path = 4;
string method = 5;
string host = 6;
}
message Origin {
string ip = 1;
string continent_code = 2;
string country_code = 3;
string city_name = 4;
float latitude = 5;
float longitude = 6;
string timezone = 7;
string asn = 8;
}
message Block {
bool when = 1;
int32 with = 2;
string message = 3;
}
message Header {
map<string, string> add = 1;
repeated string remove = 2;
map<string, string> set = 3;
google.protobuf.BoolValue when = 4;
}
message Redirect {
string from = 1;
string to = 2;
int32 with = 3;
google.protobuf.BoolValue when = 4;
}
message Rewrite {
string from = 1;
string to = 2;
google.protobuf.BoolValue when = 3;
}