Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeMetadata ¶
EncodeMetadata encodes metadata to an IPLD node then serializes to raw bytes
Types ¶
type Item ¶
type Item struct {
	Link         cid.Cid
	BlockPresent bool
}
    Item is a single link traversed in a repsonse
type Metadata ¶
type Metadata []Item
Metadata is information about metadata contained in a response, which can be serialized back and forth to bytes
func DecodeMetadata ¶
DecodeMetadata assembles metadata from a raw byte array, first deserializing as a node and then assembling into a metadata struct.
 Click to show internal directories. 
   Click to hide internal directories.