Categorygithub.com/ipfs/go-ipld-legacy
modulepackage
0.2.1
Repository: https://github.com/ipfs/go-ipld-legacy.git
Documentation: pkg.go.dev

# README

Go-ipld-legacy

A compatibility layer between go-ipld-prime and go-ipld-format

Lead Maintainer

Hannah Howard

Contributing

Contributions are welcome! This repository is part of the IPFS project and therefore governed by our contributing guidelines.

License

SPDX-License-Identifier: Apache-2.0 OR MIT

# Packages

No description provided by the author

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

ErrArrayOutOfRange is returned when Resolve link is called on a list that where the index is out of range.
ErrNoLinks is returned when we try to traverse through a terminal.
ErrNonLink is returned when ResolveLink is called on a node that is not a link.
ErrNoSuchLink is returned when ResolveLink is called on a path that does not exist.

# Structs

No description provided by the author
LegacyNode wraps a go-ipld-prime node & a block so that it can be treated as a legacy ipld format node.

# Interfaces

UniversalNode satisfies both go-ipld-prime interfaces and legacy interfaces.

# Type aliases

NodeConverter converts a go-ipld-prime node + block combination to a UniversalNode that satisfies both current and legacy ipld formats.