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
| 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 PollConfig {
| string server_id = 1;//服务器id
| int32 real_max = 2;//实时处理的最大路数
| int32 poll_period = 3;//轮询周期
| int32 delay = 4;//延迟时间
| bool enable = 5;//是否启用
| }
|
| 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;
| }
|
|