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.
41 lines (30 sloc)
963 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 merkledag.pb; | |
| import "github.com/gogo/protobuf/gogoproto/gogo.proto"; | |
| option (gogoproto.gostring_all) = true; | |
| option (gogoproto.equal_all) = true; | |
| option (gogoproto.verbose_equal_all) = true; | |
| option (gogoproto.goproto_stringer_all) = false; | |
| option (gogoproto.stringer_all) = true; | |
| option (gogoproto.populate_all) = true; | |
| option (gogoproto.testgen_all) = true; | |
| option (gogoproto.benchgen_all) = true; | |
| option (gogoproto.marshaler_all) = true; | |
| option (gogoproto.sizer_all) = true; | |
| option (gogoproto.unmarshaler_all) = true; | |
| // An IPFS MerkleDAG Link | |
| message PBLink { | |
| // multihash of the target object | |
| optional bytes Hash = 1; | |
| // utf string name. should be unique per object | |
| optional string Name = 2; | |
| // cumulative size of target object | |
| optional uint64 Tsize = 3; | |
| } | |
| // An IPFS MerkleDAG Node | |
| message PBNode { | |
| // refs to other objects | |
| repeated PBLink Links = 2; | |
| // opaque user data | |
| optional bytes Data = 1; | |
| } |