Documentation ¶
Index ¶
- type Builder
- func (b *Builder) AssignBool(bool bool) error
- func (b *Builder) AssignBytes(bytes []byte) error
- func (b *Builder) AssignFloat(f float64) error
- func (b *Builder) AssignInt(i int64) error
- func (b *Builder) AssignLink(link datamodel.Link) error
- func (b *Builder) AssignNode(node datamodel.Node) error
- func (b *Builder) AssignNull() error
- func (b *Builder) AssignString(s string) error
- func (b *Builder) BeginList(int64) (datamodel.ListAssembler, error)
- func (b *Builder) BeginMap(_ int64) (datamodel.MapAssembler, error)
- func (b *Builder) Build() datamodel.Node
- func (b *Builder) Prototype() datamodel.NodePrototype
- func (b *Builder) Reset()
- func (b *Builder) WithConfig(cfg *tree.TreeConfig) *Builder
- func (b *Builder) WithLinkSystem(lsys *ipld.LinkSystem) *Builder
- type Node
- func (n *Node) AsBool() (bool, error)
- func (n *Node) AsBytes() ([]byte, error)
- func (n *Node) AsFloat() (float64, error)
- func (n *Node) AsInt() (int64, error)
- func (n *Node) AsLink() (datamodel.Link, error)
- func (n *Node) AsString() (string, error)
- func (n *Node) IsAbsent() bool
- func (n *Node) IsNull() bool
- func (n *Node) Kind() datamodel.Kind
- func (n *Node) Length() int64
- func (n *Node) ListIterator() datamodel.ListIterator
- func (n *Node) LookupByIndex(int64) (datamodel.Node, error)
- func (n *Node) LookupByNode(key datamodel.Node) (datamodel.Node, error)
- func (n *Node) LookupBySegment(seg datamodel.PathSegment) (datamodel.Node, error)
- func (n *Node) LookupByString(key string) (datamodel.Node, error)
- func (n *Node) MapIterator() datamodel.MapIterator
- func (n *Node) Prototype() datamodel.NodePrototype
- func (n *Node) Substrate() datamodel.Node
- func (n *Node) WithLinkSystem(lsys *ipld.LinkSystem) *Node
- type ProllyTreeADLPrototype
- type TreeAssembler
- func (t *TreeAssembler) AssembleEntry(k string) (datamodel.NodeAssembler, error)
- func (t *TreeAssembler) AssembleKey() datamodel.NodeAssembler
- func (t *TreeAssembler) AssembleValue() datamodel.NodeAssembler
- func (t *TreeAssembler) Finish() error
- func (t *TreeAssembler) KeyPrototype() datamodel.NodePrototype
- func (t *TreeAssembler) ValuePrototype(k string) datamodel.NodePrototype
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
func (*Builder) AssignBool ¶
func (*Builder) AssignBytes ¶
func (*Builder) AssignFloat ¶
func (*Builder) AssignNull ¶
func (*Builder) AssignString ¶
func (*Builder) Prototype ¶
func (b *Builder) Prototype() datamodel.NodePrototype
func (*Builder) WithConfig ¶
func (b *Builder) WithConfig(cfg *tree.TreeConfig) *Builder
func (*Builder) WithLinkSystem ¶
type Node ¶
type Node struct {
*tree.ProllyTree
}
func (*Node) ListIterator ¶
func (n *Node) ListIterator() datamodel.ListIterator
func (*Node) LookupBySegment ¶
func (*Node) MapIterator ¶
func (n *Node) MapIterator() datamodel.MapIterator
func (*Node) Prototype ¶
func (n *Node) Prototype() datamodel.NodePrototype
func (*Node) WithLinkSystem ¶
type ProllyTreeADLPrototype ¶
type ProllyTreeADLPrototype struct { }
func (ProllyTreeADLPrototype) NewBuilder ¶
func (p ProllyTreeADLPrototype) NewBuilder() datamodel.NodeBuilder
type TreeAssembler ¶
type TreeAssembler struct {
// contains filtered or unexported fields
}
func (*TreeAssembler) AssembleEntry ¶
func (t *TreeAssembler) AssembleEntry(k string) (datamodel.NodeAssembler, error)
func (*TreeAssembler) AssembleKey ¶
func (t *TreeAssembler) AssembleKey() datamodel.NodeAssembler
func (*TreeAssembler) AssembleValue ¶
func (t *TreeAssembler) AssembleValue() datamodel.NodeAssembler
func (*TreeAssembler) Finish ¶
func (t *TreeAssembler) Finish() error
func (*TreeAssembler) KeyPrototype ¶
func (t *TreeAssembler) KeyPrototype() datamodel.NodePrototype
func (*TreeAssembler) ValuePrototype ¶
func (t *TreeAssembler) ValuePrototype(k string) datamodel.NodePrototype
Click to show internal directories.
Click to hide internal directories.