forked from zilliztech/phantoscope
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rpc.proto
50 lines (39 loc) · 819 Bytes
/
rpc.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
syntax = "proto3";
package omnisearch;
service Operator {
rpc Execute(ExecuteRequest) returns (ExecuteReply) {}
rpc Healthy(HealthyRequest) returns (HealthyReply) {}
rpc Identity(IdentityRequest) returns (IdentityReply) {}
}
message ExecuteRequest {
repeated string urls = 1;
repeated string datas = 2;
}
message Vector {
repeated float element = 1;
}
message MetaData {
string url = 1;
bytes data = 2;
}
message ExecuteReply {
int64 nums = 1;
repeated Vector vectors = 2;
repeated MetaData metadata = 3;
}
message HealthyRequest {
}
message HealthyReply {
string healthy = 1;
}
message IdentityRequest {
}
message IdentityReply {
string name = 1;
string endpoint = 2;
string type = 3;
string input = 4;
string output = 5;
string dimension = 6;
string metricType = 7;
}