blob: 82557195c522b2a011599e2e44e44a7261f041d1 (
plain)
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
|
// Copyright (c) Authors of Clover
//
// All rights reserved. This program and the accompanying materials
// are made available under the terms of the Apache License, Version 2.0
// which accompanies this distribution, and is available at
// http://www.apache.org/licenses/LICENSE-2.0
syntax = "proto3";
package nginx;
// The controller service definition.
service Controller {
rpc ModifyProxy (ConfigProxy) returns (NginxReply) {}
rpc ModifyServer (ConfigServer) returns (NginxReply) {}
rpc ModifyLB (ConfigLB) returns (NginxReply) {}
rpc ProcessAlerts (AlertMessage) returns (NginxReply) {}
}
message AlertMessage {
string event_id = 1;
string redis_key = 2;
}
message ConfigProxy {
string server_port = 1;
string server_name = 2;
string location_path = 3;
string proxy_path = 4;
string mirror_path = 5;
}
message ConfigServer {
string server_port = 1;
string server_name = 2;
string site_root = 3;
string site_index = 4;
string upload_path_config = 5;
string locations = 6;
string upload_path_test = 7;
string files = 8;
}
message ConfigLB {
string server_port = 1;
string server_name = 2;
string slb_list = 3;
string slb_group = 4;
string lb_path = 5;
}
message NginxReply {
string message = 1;
}
|