-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathecflow_client.proto
55 lines (46 loc) · 1.12 KB
/
ecflow_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
syntax = "proto3";
package ecflow_client;
option go_package = "ecflowclient";
message ResponseStatus{
bool has_error = 1;
string error_string = 2;
}
message StatusRequest{
string owner = 1;
string repo = 2;
string host = 3;
string port = 4;
}
message StatusRecordsResponse{
string owner = 1;
string repo = 2;
int64 collected_timestamp = 3;
map<string, string> status_map = 4;
ResponseStatus response_status = 5;
}
message StatusResponse{
string owner = 1;
string repo = 2;
int64 collected_timestamp = 3;
string status = 4;
ResponseStatus response_status = 5;
}
message NodeRequest{
string owner = 1;
string repo = 2;
string host = 3;
string port = 4;
string path = 5;
}
message NodeResponse{
string owner = 1;
string repo = 2;
string path = 3;
string node = 4;
ResponseStatus response_status = 5;
}
service EcflowClientService{
rpc CollectStatusRecords(StatusRequest) returns (StatusRecordsResponse){}
rpc CollectStatus(StatusRequest) returns (StatusResponse){}
rpc CollectNode(NodeRequest) returns (NodeResponse){}
}