unixfs.proto 399 Bytes
Newer Older
Steven Allen's avatar
Steven Allen committed
1 2
syntax = "proto2";

3
package unixfs.pb;
4

5
message Data {
6 7 8 9
	enum DataType {
		Raw = 0;
		Directory = 1;
		File = 2;
10
		Metadata = 3;
11
		Symlink = 4;
12
		HAMTShard = 5;
13 14 15 16 17 18
	}

	required DataType Type = 1;
	optional bytes Data = 2;
	optional uint64 filesize = 3;
	repeated uint64 blocksizes = 4;
19 20 21

	optional uint64 hashType = 5;
	optional uint64 fanout = 6;
22
}
23 24

message Metadata {
25
	optional string MimeType = 1;
26
}