node

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

The 'node' package gathers various general purpose Node implementations; the first one you should jump to is 'node/basicnode'.

There's no code in this package itself; it's just for grouping.

The `Node` interface itself is in the `ipld` package, which is the parent of this.

The 'node/mixins' package contains reusable component code for building your own node implementations, should you desire to do so. This includes standardized behavioral tests (!), which are in the 'node/mixins/tests' package.

Other planned subpackages include: a cbor-native Node implementation (which can optimize performance in some cases by lazily parsing serial data, and also retaining it as byte slice references for minimizing reserialization work for small mutations); a Node implementation which works over golang native types by use of reflection; a Node implementation which supports Schema type constraints and works without compile-time/codegen support by delegating storage to another Node implementation; etc.

You can create your own Node implementations, too. There's nothing special about being in this package.

Other Node implementations not found here may include those which are output from Schema-powered codegen!

Directories

Path Synopsis
This is a transitional package: please move your references to `node/basicnode`.
This is a transitional package: please move your references to `node/basicnode`.
Package bindnode provides a datamodel.Node implementation via Go reflection.
Package bindnode provides a datamodel.Node implementation via Go reflection.
corpus
The corpus package exports some values useful for building tests and benchmarks.
The corpus package exports some values useful for building tests and benchmarks.

Jump to

Keyboard shortcuts

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