aboutsummaryrefslogtreecommitdiffstats
path: root/src/drive_proto.proto
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2017-10-18 23:27:46 -0700
committerBryan Newbold <bnewbold@robocracy.org>2017-10-18 23:28:15 -0700
commit30b0bdb93389f98cb355f8128032a37772437ae5 (patch)
tree8fbda190e7dffb356c8703674d52af9922ae56b7 /src/drive_proto.proto
parent1e29f3c3c4f3fd50f939758a6f7ae42b600045ed (diff)
downloadgeniza-30b0bdb93389f98cb355f8128032a37772437ae5.tar.gz
geniza-30b0bdb93389f98cb355f8128032a37772437ae5.zip
protobuf messages
Diffstat (limited to 'src/drive_proto.proto')
-rw-r--r--src/drive_proto.proto18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/drive_proto.proto b/src/drive_proto.proto
new file mode 100644
index 0000000..cd36b30
--- /dev/null
+++ b/src/drive_proto.proto
@@ -0,0 +1,18 @@
+// From hyperdrive:lib/messages.js
+
+message Index {
+ required string type = 1;
+ optional bytes content = 2;
+}
+
+message Stat {
+ required uint32 mode = 1;
+ optional uint32 uid = 2;
+ optional uint32 gid = 3;
+ optional uint64 size = 4;
+ optional uint64 blocks = 5;
+ optional uint64 offset = 6;
+ optional uint64 byteOffset = 7;
+ optional uint64 mtime = 8;
+ optional uint64 ctime = 9;
+}