From 83d3ee0196af0b2c0b9bea1c945c794d4f84ae93 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Sat, 28 Oct 2017 13:18:10 -0700 Subject: rename protobuf files/modules; add Node type Also specify the protobuf syntax version (2) --- src/metadata_msgs.proto | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 src/metadata_msgs.proto (limited to 'src/metadata_msgs.proto') diff --git a/src/metadata_msgs.proto b/src/metadata_msgs.proto new file mode 100644 index 0000000..8de4949 --- /dev/null +++ b/src/metadata_msgs.proto @@ -0,0 +1,33 @@ +syntax = "proto2"; + +// File copied from: https://github.com/mafintosh/hyperdrive/blob/master/lib/messages.js +// Copyright (c) 2015 Mathias Buus +// MIT License (MIT) + + +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; +} + +// File copied from: https://github.com/mafintosh/append-tree/blob/master/schema.proto +// Copyright (c) 2015 Mathias Buus +// MIT License (MIT) + +message Node { + required string name = 1; + optional bytes value = 2; + optional bytes paths = 3; +} -- cgit v1.2.3