Documentation ¶
Index ¶
- func Bind(bindme interface{}, atl atlas.Atlas) 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) MapIterator() ipld.MapIterator
- func (n Node) NodeBuilder() ipld.NodeBuilder
- func (n Node) PushTokens(sink shared.TokenSink) error
- func (n Node) ReprKind() ipld.ReprKind
- func (n Node) TraverseField(pth string) (ipld.Node, error)
- func (n Node) TraverseIndex(idx int) (ipld.Node, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
Node binds to some Go object in memory, using the definitions provided by refmt's object atlasing tools.
This binding does not provide a serialization valid for hashing; to compute a CID, you'll have to convert to another kind of node. If you're not sure which kind serializable node to use, try `ipldcbor.Node`.
func (Node) IsUndefined ¶
func (Node) ListIterator ¶
func (n Node) ListIterator() ipld.ListIterator
func (Node) MapIterator ¶
func (n Node) MapIterator() ipld.MapIterator
func (Node) NodeBuilder ¶
func (n Node) NodeBuilder() ipld.NodeBuilder
func (Node) TraverseField ¶
func (Node) TraverseIndex ¶
Click to show internal directories.
Click to hide internal directories.