adl

package
v0.0.0-...-2c13b6f Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

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 (b *Builder) AssignBool(bool bool) error

func (*Builder) AssignBytes

func (b *Builder) AssignBytes(bytes []byte) error

func (*Builder) AssignFloat

func (b *Builder) AssignFloat(f float64) error

func (*Builder) AssignInt

func (b *Builder) AssignInt(i int64) error
func (b *Builder) AssignLink(link datamodel.Link) error

func (*Builder) AssignNode

func (b *Builder) AssignNode(node datamodel.Node) error

func (*Builder) AssignNull

func (b *Builder) AssignNull() error

func (*Builder) AssignString

func (b *Builder) AssignString(s string) error

func (*Builder) BeginList

func (b *Builder) BeginList(int64) (datamodel.ListAssembler, error)

func (*Builder) BeginMap

func (b *Builder) BeginMap(_ int64) (datamodel.MapAssembler, error)

func (*Builder) Build

func (b *Builder) Build() datamodel.Node

func (*Builder) Prototype

func (b *Builder) Prototype() datamodel.NodePrototype

func (*Builder) Reset

func (b *Builder) Reset()

func (*Builder) WithConfig

func (b *Builder) WithConfig(cfg *tree.TreeConfig) *Builder

func (*Builder) WithLinkSystem

func (b *Builder) WithLinkSystem(lsys *ipld.LinkSystem) *Builder

type Node

type Node struct {
	*tree.ProllyTree
}

func (*Node) AsBool

func (n *Node) AsBool() (bool, error)

func (*Node) AsBytes

func (n *Node) AsBytes() ([]byte, error)

func (*Node) AsFloat

func (n *Node) AsFloat() (float64, error)

func (*Node) AsInt

func (n *Node) AsInt() (int64, error)
func (n *Node) AsLink() (datamodel.Link, error)

func (*Node) AsString

func (n *Node) AsString() (string, error)

func (*Node) IsAbsent

func (n *Node) IsAbsent() bool

func (*Node) IsNull

func (n *Node) IsNull() bool

func (*Node) Kind

func (n *Node) Kind() datamodel.Kind

func (*Node) Length

func (n *Node) Length() int64

func (*Node) ListIterator

func (n *Node) ListIterator() datamodel.ListIterator

func (*Node) LookupByIndex

func (n *Node) LookupByIndex(int64) (datamodel.Node, error)

func (*Node) LookupByNode

func (n *Node) LookupByNode(key datamodel.Node) (datamodel.Node, error)

func (*Node) LookupBySegment

func (n *Node) LookupBySegment(seg datamodel.PathSegment) (datamodel.Node, error)

func (*Node) LookupByString

func (n *Node) LookupByString(key string) (datamodel.Node, error)

func (*Node) MapIterator

func (n *Node) MapIterator() datamodel.MapIterator

func (*Node) Prototype

func (n *Node) Prototype() datamodel.NodePrototype

func (*Node) Substrate

func (n *Node) Substrate() datamodel.Node

func (*Node) WithLinkSystem

func (n *Node) WithLinkSystem(lsys *ipld.LinkSystem) *Node

type ProllyTreeADLPrototype

type ProllyTreeADLPrototype struct {
}

func (ProllyTreeADLPrototype) NewBuilder

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

Jump to

Keyboard shortcuts

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