Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrExpectedByteString = errors.New("expected byte string")
View Source
var ErrWrongCborTagNumber = errors.New("wrong CBOR tag for CID")
Functions ¶
This section is empty.
Types ¶
type Block ¶
Block wraps the node.Node interface, adding some extra methods to interface with the carmirror code base.
func TryBlockFromCBOR ¶
type Cid ¶
Cid wraps cid.Cid, in order to add CBOR serialization and deserialization.
func (Cid) MarshalCBOR ¶
MarshalCBOR implements the CBOR marshaler interface.
func (*Cid) Read ¶
func (ipfsCid *Cid) Read(reader core.ByteAndBlockReader) (int, error)
Read reads the CID from the reader into the Cid.
func (*Cid) UnmarshalCBOR ¶
UnmarshalCBOR implements the CBOR unmarshaler interface.
type RawBlock ¶
RawBlock wraps the block.Block interface, allowing it to interface with the carmirror code base.
func WrapRawBlock ¶
WrapRawBlock wraps a block.Block in a RawBlock.
Click to show internal directories.
Click to hide internal directories.