-
Notifications
You must be signed in to change notification settings - Fork 18
/
v2raypool.proto
67 lines (59 loc) · 1.54 KB
/
v2raypool.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
syntax = "proto3";
package v2raypool;
option go_package = "./grpc";
message ProxyNode {
uint32 index = 1;
string id = 2;
uint32 local_port = 3;
float speed = 4;
string title = 5;
string local_addr = 6;
string remote_addr = 7;
bool is_running = 8;
bool is_ok = 9;
string test_at = 10;
}
message OptResult {
uint32 status = 1;
string msg = 2;
}
message OptRequest {}
message OptRequestDomain {
string domain = 1;
}
message OptRequestUrl {
string url = 1;
}
message UpdateSubscribeResult {
uint32 status = 1;
string msg = 2;
uint32 total = 3;
uint32 add = 4;
}
message KillNodesResult {
uint32 status = 1;
string msg = 2;
uint32 total = 3;
uint32 runport = 4;
uint32 kill = 5;
uint32 fail = 6;
}
message ProxyNodes {
message OptResult {
uint32 status = 1;
string msg = 2;
}
repeated ProxyNode items = 1;
}
service ProxyPoolService {
rpc GetProxyNodes(ProxyNode) returns(ProxyNodes){};
rpc GetProxyNodesByDomain(OptRequestDomain) returns(ProxyNodes){};
rpc SetTestUrl(OptRequestUrl) returns(OptResult){};
rpc StartProxyPoolAll(OptRequest) returns(OptResult){};
rpc StopProxyPoolAll(OptRequest) returns(OptResult){};
rpc TestProxyPoolAll(OptRequest) returns(OptResult){};
rpc TestProxyPoolAllForce(OptRequest) returns(OptResult){};
rpc KillAllNodes(OptRequest) returns(KillNodesResult){};
rpc ActiveProxyNode(ProxyNode) returns(OptResult){};
rpc UpdateProxySubscribe(OptRequest) returns(UpdateSubscribeResult){};
}