unixfs.proto 286 Bytes
Newer Older
1
package unixfs.pb;
2

3
message Data {
4 5 6 7
	enum DataType {
		Raw = 0;
		Directory = 1;
		File = 2;
8
		Metadata = 3;
9 10 11 12
	}

	required DataType Type = 1;
	optional bytes Data = 2;
Jeromy's avatar
Jeromy committed
13
	optional uint64 filesize = 3;
14
	repeated uint64 blocksizes = 4;
15
}
16 17 18 19

message Metadata {
	required string MimeType = 1;
}