-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtransfer.proto
More file actions
37 lines (30 loc) · 777 Bytes
/
Copy pathtransfer.proto
File metadata and controls
37 lines (30 loc) · 777 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
syntax = "proto3";
package pb;
message data_req
{
optional bytes name = 1; // name of the file
optional bytes data = 2; // bytes of the file
optional uint32 perms = 3;
optional uint64 id = 4; // for debugging
}
message data_res
{
optional bool success = 1;
optional uint64 id = 2; // for debugging
}
message done_req
{
optional bytes name = 1; // name of the last file transferred
optional uint64 id = 2; // for debugging
}
message done_res
{
optional bool success = 1;
optional uint64 id = 2; // for debugging
}
service service
{
rpc data_transfer(data_req) returns (data_res);
rpc done_transfer(done_req) returns (done_res);
}
option cc_generic_services = true;