Documentation ¶
Index ¶
- func NodeBuilder() ipld.NodeBuilder
- func String(value string) ipld.Node
- type Node
- func (n *Node) AsBool() (v bool, _ error)
- func (n *Node) AsBytes() (v []byte, _ error)
- func (n *Node) AsFloat() (v float64, _ error)
- func (n *Node) AsInt() (v int, _ error)
- func (n *Node) AsLink() (v ipld.Link, _ error)
- func (n *Node) AsString() (v string, _ error)
- func (n *Node) IsNull() bool
- func (Node) IsUndefined() bool
- func (n *Node) Length() int
- func (n *Node) ListIterator() ipld.ListIterator
- func (n *Node) Lookup(key ipld.Node) (ipld.Node, error)
- func (n *Node) LookupIndex(idx int) (ipld.Node, error)
- func (n *Node) LookupSegment(seg ipld.PathSegment) (ipld.Node, error)
- func (n *Node) LookupString(pth string) (ipld.Node, error)
- func (n *Node) MapIterator() ipld.MapIterator
- func (n *Node) NodeBuilder() ipld.NodeBuilder
- func (n *Node) ReprKind() ipld.ReprKind
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NodeBuilder ¶
func NodeBuilder() ipld.NodeBuilder
NodeBuilder returns a new ipld.NodeBuilder implementation that will produce ipldfree.Node instances.
There are no constraints on free nodes, so none of the create methods will ever return errors.
Types ¶
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
Node is an implementatin of `ipld.Node` that can contain any content.
This implementation is extremely simple; it is general-purpose, but not optimized for any particular purpose.
The "zero" value of this struct has a kind of ReprKind_Invalid. NodeBuilder must be used to produce valid instances of Node.
func (Node) IsUndefined ¶
func (*Node) ListIterator ¶
func (n *Node) ListIterator() ipld.ListIterator
func (*Node) LookupSegment ¶ added in v0.0.2
func (*Node) LookupString ¶ added in v0.0.2
func (*Node) MapIterator ¶
func (n *Node) MapIterator() ipld.MapIterator
func (*Node) NodeBuilder ¶
func (n *Node) NodeBuilder() ipld.NodeBuilder
Click to show internal directories.
Click to hide internal directories.