-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathbifrost.proto
70 lines (54 loc) · 1.2 KB
/
bifrost.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
syntax = "proto3";
option go_package = "api/protobuf-spec/bifrostpb/v1";
package bifrostpb; // 服务名
service WebServerConfig {
rpc GetServerNames(Null) returns (ServerNames) {}
rpc Get(ServerName) returns (stream ServerConfig) {}
rpc Update(stream ServerConfig) returns (Response) {}
}
service WebServerStatistics {
rpc Get(ServerName) returns (stream Statistics) {}
}
service WebServerStatus {
rpc Get(Null) returns (stream Metrics) {}
}
service WebServerLogWatcher {
rpc Watch(LogWatchRequest) returns (stream Response) {}
}
service WebServerBinCMD {
rpc Exec(ExecuteRequest) returns (ExecuteResponse) {}
}
message Null {}
message ServerNames {
repeated ServerName Names = 1;
}
message ServerName {
string Name = 1;
}
message ServerConfig {
string ServerName = 1;
bytes JsonData = 2;
}
message Response {
bytes Msg = 1;
}
message Statistics {
bytes JsonData = 1;
}
message Metrics {
bytes JsonData = 1;
}
message LogWatchRequest {
string ServerName = 1;
string LogName = 2;
string FilterRule =3;
}
message ExecuteRequest {
string ServerName = 1;
repeated string Args = 2;
}
message ExecuteResponse {
bool Successful = 1;
bytes Stdout = 2;
bytes Stderr = 3;
}