Versions in this module Expand all Collapse all v0 v0.0.4 Aug 28, 2021 v0.0.3 Aug 22, 2021 v0.0.2 Aug 22, 2021 v0.0.1 Jul 29, 2021 Changes in this version + var KindSet_JustBool = KindSet + var KindSet_JustBytes = KindSet + var KindSet_JustFloat = KindSet + var KindSet_JustInt = KindSet + var KindSet_JustLink = KindSet + var KindSet_JustList = KindSet + var KindSet_JustMap = KindSet + var KindSet_JustNull = KindSet + var KindSet_JustString = KindSet + var KindSet_Recursive = KindSet + var KindSet_Scalar = KindSet + func DeepEqual(x, y Node) bool + type ADL interface + Substrate func() Node + type BlockReadOpener func(LinkContext, Link) (io.Reader, error) + type BlockWriteCommitter func(Link) error + type BlockWriteOpener func(LinkContext) (io.Writer, BlockWriteCommitter, error) + type Decoder func(NodeAssembler, io.Reader) error + type Encoder func(Node, io.Writer) error + type ErrCannotBeNull struct + type ErrHashMismatch struct + Actual Link + Expected Link + func (e ErrHashMismatch) Error() string + type ErrInvalidKey struct + Key Node + Reason error + TypeName string + func (e ErrInvalidKey) Error() string + type ErrInvalidSegmentForList struct + Reason error + TroubleSegment PathSegment + TypeName string + func (e ErrInvalidSegmentForList) Error() string + type ErrInvalidUnionDiscriminant struct + type ErrIteratorOverread struct + func (e ErrIteratorOverread) Error() string + type ErrLinkingSetup struct + Cause error + Detail string + func (e ErrLinkingSetup) Error() string + func (e ErrLinkingSetup) Unwrap() error + type ErrListOverrun struct + type ErrMissingRequiredField struct + Missing []string + func (e ErrMissingRequiredField) Error() string + type ErrNotExists struct + Segment PathSegment + func (e ErrNotExists) Error() string + type ErrRepeatedMapKey struct + Key Node + func (e ErrRepeatedMapKey) Error() string + type ErrUnmatchable struct + Reason error + TypeName string + func (e ErrUnmatchable) Error() string + func (e ErrUnmatchable) Reasonf(format string, a ...interface{}) ErrUnmatchable + type ErrWrongKind struct + ActualKind Kind + AppropriateKind KindSet + MethodName string + TypeName string + func (e ErrWrongKind) Error() string + type Kind uint8 + const Kind_Bool + const Kind_Bytes + const Kind_Float + const Kind_Int + const Kind_Invalid + const Kind_Link + const Kind_List + const Kind_Map + const Kind_Null + const Kind_String + func (k Kind) String() string + type KindSet []Kind + func (x KindSet) Contains(e Kind) bool + func (x KindSet) String() string + type Link interface + Prototype func() LinkPrototype + String func() string + type LinkContext struct + Ctx context.Context + LinkNode Node + LinkNodeAssembler NodeAssembler + LinkPath Path + ParentNode Node + type LinkPrototype interface + BuildLink func(hashsum []byte) Link + type LinkSystem struct + DecoderChooser func(Link) (Decoder, error) + EncoderChooser func(LinkPrototype) (Encoder, error) + HasherChooser func(LinkPrototype) (hash.Hash, error) + NodeReifier NodeReifier + StorageReadOpener BlockReadOpener + StorageWriteOpener BlockWriteOpener + TrustedStorage bool + func (lsys *LinkSystem) ComputeLink(lp LinkPrototype, n Node) (Link, error) + func (lsys *LinkSystem) Fill(lnkCtx LinkContext, lnk Link, na NodeAssembler) error + func (lsys *LinkSystem) Load(lnkCtx LinkContext, lnk Link, np NodePrototype) (Node, error) + func (lsys *LinkSystem) MustComputeLink(lp LinkPrototype, n Node) Link + func (lsys *LinkSystem) MustFill(lnkCtx LinkContext, lnk Link, na NodeAssembler) + func (lsys *LinkSystem) MustLoad(lnkCtx LinkContext, lnk Link, np NodePrototype) Node + func (lsys *LinkSystem) MustStore(lnkCtx LinkContext, lp LinkPrototype, n Node) Link + func (lsys *LinkSystem) Store(lnkCtx LinkContext, lp LinkPrototype, n Node) (Link, error) + type ListAssembler interface + AssembleValue func() NodeAssembler + Finish func() error + ValuePrototype func(idx int64) NodePrototype + type ListIterator interface + Done func() bool + Next func() (idx int64, value Node, err error) + type MapAssembler interface + AssembleEntry func(k string) (NodeAssembler, error) + AssembleKey func() NodeAssembler + AssembleValue func() NodeAssembler + Finish func() error + KeyPrototype func() NodePrototype + ValuePrototype func(k string) NodePrototype + type MapIterator interface + Done func() bool + Next func() (key Node, value Node, err error) + type Node interface + AsBool func() (bool, error) + AsBytes func() ([]byte, error) + AsFloat func() (float64, error) + AsInt func() (int64, error) + AsLink func() (Link, error) + AsString func() (string, error) + IsAbsent func() bool + IsNull func() bool + Kind func() Kind + Length func() int64 + ListIterator func() ListIterator + LookupByIndex func(idx int64) (Node, error) + LookupByNode func(key Node) (Node, error) + LookupBySegment func(seg PathSegment) (Node, error) + LookupByString func(key string) (Node, error) + MapIterator func() MapIterator + Prototype func() NodePrototype + var Absent Node = absentNode{} + var Null Node = nullNode{} + type NodeAssembler interface + AssignBool func(bool) error + AssignBytes func([]byte) error + AssignFloat func(float64) error + AssignInt func(int64) error + AssignLink func(Link) error + AssignNode func(Node) error + AssignNull func() error + AssignString func(string) error + BeginList func(sizeHint int64) (ListAssembler, error) + BeginMap func(sizeHint int64) (MapAssembler, error) + Prototype func() NodePrototype + type NodeBuilder interface + Build func() Node + Reset func() + type NodePrototype interface + NewBuilder func() NodeBuilder + type NodePrototypeSupportingAmend interface + AmendingBuilder func(base Node) NodeBuilder + type NodeReifier func(LinkContext, Node, *LinkSystem) (Node, error) + type Path struct + func NewPath(segments []PathSegment) Path + func NewPathNocopy(segments []PathSegment) Path + func ParsePath(pth string) Path + func (p Path) AppendSegment(ps PathSegment) Path + func (p Path) AppendSegmentString(ps string) Path + func (p Path) Join(p2 Path) Path + func (p Path) Last() PathSegment + func (p Path) Len() int + func (p Path) Parent() Path + func (p Path) Segments() []PathSegment + func (p Path) Shift() (PathSegment, Path) + func (p Path) String() string + func (p Path) Truncate(i int) Path + type PathSegment struct + func ParsePathSegment(s string) PathSegment + func PathSegmentOfInt(i int64) PathSegment + func PathSegmentOfString(s string) PathSegment + func (ps PathSegment) Index() (int64, error) + func (ps PathSegment) String() string + func (x PathSegment) Equals(o PathSegment) bool