unixfs.proto 379 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
		Symlink = 4;
10
		HAMTShard = 5;
11 12 13 14 15 16
	}

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

	optional uint64 hashType = 5;
	optional uint64 fanout = 6;
20
}
21 22

message Metadata {
23
	optional string MimeType = 1;
24
}