-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclient-comm.proto
More file actions
39 lines (30 loc) · 841 Bytes
/
client-comm.proto
File metadata and controls
39 lines (30 loc) · 841 Bytes
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
syntax = "proto3";
option java_multiple_files = true;
option java_package = "org.client.protos";
//option java_outer_classname = "StreamProto";
package stream;
service Streaming {
rpc UploadFile (stream UploadFileRequest) returns (UploadFileReply) {}
rpc DownloadFile (DownloadFileRequest) returns (stream DownloadFileReply) {}
}
// The request message containing the user's name.
message UploadFileRequest {
// TODO add auth jwt token
string filename = 1;
bytes payload = 2;
string token = 3;
}
// The response message containing the greetings
message UploadFileReply {
string status = 1;
}
message DownloadFileRequest {
// TODO add auth jwt token
string filename = 1;
string token = 2;
}
// The response message containing the greetings
message DownloadFileReply {
bytes payload = 2;
string error = 1;
}