forked from VaalaCat/frp-panel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapi_client.proto
78 lines (60 loc) · 1.37 KB
/
api_client.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
syntax = "proto3";
package api_client;
import "common.proto";
option go_package="../pb";
message InitClientRequest {
optional string client_id = 1;
}
message InitClientResponse {
optional common.Status status = 1;
optional string client_id = 2;
}
message ListClientsRequest {
optional int32 page = 1;
optional int32 page_size = 2;
}
message ListClientsResponse {
optional common.Status status = 1;
optional int32 total = 2;
repeated common.Client clients = 3;
}
message GetClientRequest {
optional string client_id = 1;
}
message GetClientResponse {
optional common.Status status = 1;
optional common.Client client = 2;
}
message DeleteClientRequest {
optional string client_id = 1;
}
message DeleteClientResponse {
optional common.Status status = 1;
}
message UpdateFRPCRequest {
optional string client_id = 1;
optional string server_id = 2;
optional bytes config = 3;
optional string comment = 4;
}
message UpdateFRPCResponse {
optional common.Status status = 1;
}
message RemoveFRPCRequest {
optional string client_id = 1;
}
message RemoveFRPCResponse {
optional common.Status status = 1;
}
message StopFRPCRequest {
optional string client_id = 1;
}
message StopFRPCResponse {
optional common.Status status = 1;
}
message StartFRPCRequest {
optional string client_id = 1;
}
message StartFRPCResponse {
optional common.Status status = 1;
}