liuxiaolong
2019-06-22 0d3ee5a9c502fd42f635a719104293f94bc3cfb7
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
syntax = "proto3";
 
package protomsg;
 
message LocalConfig {
    string server_id = 1;
    string server_name = 2;
    int32 server_type = 3;
    string server_ip = 4;//服务器ip,调用系统命令获取
    string alarm_ip = 5;
    int32 alarm_port = 6;
    string web_pic_ip = 7;
    int32 web_pic_port = 8;
    string es_pic_ip = 9;
    int32 es_pic_port = 10;
    int32 cut_max_duration = 11;
    int32 cut_min_duration = 12;
    string reserved = 13;
 
    string gate_way = 14;
    string net_mask = 15;
}
 
message Cluster {
    string cluster_id = 1;
    string cluster_name = 2;
    string password = 3;
    string virtual_ip = 4;
    repeated ClusterNode nodes = 5;
}
 
message ClusterNode {
    string id = 1;
    string cluster_id = 2;
    string server_id = 3;
    string server_name = 4;
    string node_id = 5;
    string node_ip = 6;
    string create_time = 7;
}