diff options
Diffstat (limited to 'proto')
-rw-r--r-- | proto/fss.proto | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/proto/fss.proto b/proto/fss.proto new file mode 100644 index 0000000..12fda7a --- /dev/null +++ b/proto/fss.proto @@ -0,0 +1,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; +} |