dagcbor

package
v1.7.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2021 License: MIT, MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidMultibase         = errors.New("invalid multibase on IPLD link")
	ErrAllocationBudgetExceeded = errors.New("message structure demanded too many resources to process")
)

Functions

func Decoder

func Decoder(na ipld.NodeAssembler, r io.Reader) error

func Encoder

func Encoder(n ipld.Node, w io.Writer) error

func Marshal

func Marshal(n ipld.Node, sink shared.TokenSink) error

This should be identical to the general feature in the parent package, except for the `case ipld.ReprKind_Link` block, which is dag-cbor's special sauce for schemafree links.

func Unmarshal

func Unmarshal(na ipld.NodeAssembler, tokSrc shared.TokenSource) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL