Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Prototype struct { Metadata schema.TypedPrototype }
Functions ¶
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.
func (Metadata) ToGraphSyncMetadata ¶
func (md Metadata) ToGraphSyncMetadata() []message.GraphSyncLinkMetadatum
Click to show internal directories.
Click to hide internal directories.