Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
26 lines (21 sloc)
399 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| syntax = "proto2"; | |
| package unixfs.pb; | |
| message Data { | |
| enum DataType { | |
| Raw = 0; | |
| Directory = 1; | |
| File = 2; | |
| Metadata = 3; | |
| Symlink = 4; | |
| HAMTShard = 5; | |
| } | |
| required DataType Type = 1; | |
| optional bytes Data = 2; | |
| optional uint64 filesize = 3; | |
| repeated uint64 blocksizes = 4; | |
| optional uint64 hashType = 5; | |
| optional uint64 fanout = 6; | |
| } | |
| message Metadata { | |
| optional string MimeType = 1; | |
| } |