github.com/keltia/go-ipfs@v0.3.8-0.20150909044612-210793031c63/merkledag/pb/merkledag.proto (about)

     1  package merkledag.pb;
     2  
     3  import "code.google.com/p/gogoprotobuf/gogoproto/gogo.proto";
     4  
     5  option (gogoproto.gostring_all) = true;
     6  option (gogoproto.equal_all) = true;
     7  option (gogoproto.verbose_equal_all) = true;
     8  option (gogoproto.goproto_stringer_all) = false;
     9  option (gogoproto.stringer_all) =  true;
    10  option (gogoproto.populate_all) = true;
    11  option (gogoproto.testgen_all) = true;
    12  option (gogoproto.benchgen_all) = true;
    13  option (gogoproto.marshaler_all) = true;
    14  option (gogoproto.sizer_all) = true;
    15  option (gogoproto.unmarshaler_all) = true;
    16  
    17  
    18  // An IPFS MerkleDAG Link
    19  message PBLink {
    20  
    21    // multihash of the target object
    22    optional bytes Hash = 1;
    23  
    24    // utf string name. should be unique per object
    25    optional string Name = 2;
    26  
    27    // cumulative size of target object
    28    optional uint64 Tsize = 3;
    29  }
    30  
    31  // An IPFS MerkleDAG Node
    32  message PBNode {
    33  
    34    // refs to other objects
    35    repeated PBLink Links = 2;
    36  
    37    // opaque user data
    38    optional bytes Data = 1;
    39  }