blob: 12fda7a52bc0b289d3d466e1f6c62aa2958feee3 (
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
|
syntax = "proto3";
package fss;
service FSS {
rpc GetVersion (VersionRequest) returns (VersionReply);
rpc IndexFile (IndexFileRequest) returns (IndexFileReply);
rpc SearchQuery (SearchQueryRequest) returns (SearchResponse);
}
message VersionRequest {
}
message VersionReply {
string version = 1; // Reply contains only the version string
}
message IndexFileRequest {
string path = 1;
}
message IndexFileReply {
bool error = 1;
}
message SearchQueryRequest {
string query = 1;
}
message SearchResponse {
bool success = 1;
repeated string pathes = 2;
}
|