Versions in this module Expand all Collapse all v0 v0.0.3 Aug 12, 2020 Changes in this version + var ErrNoAutomaticDecoding = errors.New("No automatic decoding for this type, node builder must provide fast path") + var ErrNoAutomaticEncoding = errors.New("No automatic encoding for this type, node must provide fast path") + func AddDagPBSupportToChooser(existing traversal.NodeBuilderChooser) traversal.NodeBuilderChooser + func Bytes__NodeBuilder() ipld.NodeBuilder + func Int__NodeBuilder() ipld.NodeBuilder + func Link__NodeBuilder() ipld.NodeBuilder + func PBDecoder(nb ipld.NodeBuilder, r io.Reader) (ipld.Node, error) + func PBEncoder(n ipld.Node, w io.Writer) error + func PBLink__NodeBuilder() ipld.NodeBuilder + func PBLink__ReprBuilder() ipld.NodeBuilder + func PBLinks__NodeBuilder() ipld.NodeBuilder + func PBNode__NodeBuilder() ipld.NodeBuilder + func PBNode__ReprBuilder() ipld.NodeBuilder + func RawDecoder(nb ipld.NodeBuilder, r io.Reader) (ipld.Node, error) + func RawEncoder(n ipld.Node, w io.Writer) error + func RawNode__NodeBuilder() ipld.NodeBuilder + func String__NodeBuilder() ipld.NodeBuilder + type Bytes struct + func (Bytes) AsBool() (bool, error) + func (Bytes) AsFloat() (float64, error) + func (Bytes) AsInt() (int, error) + func (Bytes) AsLink() (ipld.Link, error) + func (Bytes) AsString() (string, error) + func (Bytes) IsNull() bool + func (Bytes) IsUndefined() bool + func (Bytes) Length() int + func (Bytes) ListIterator() ipld.ListIterator + func (Bytes) Lookup(ipld.Node) (ipld.Node, error) + func (Bytes) LookupIndex(idx int) (ipld.Node, error) + func (Bytes) LookupSegment(seg ipld.PathSegment) (ipld.Node, error) + func (Bytes) LookupString(string) (ipld.Node, error) + func (Bytes) MapIterator() ipld.MapIterator + func (Bytes) NodeBuilder() ipld.NodeBuilder + func (Bytes) ReprKind() ipld.ReprKind + func (Bytes) Representation() ipld.Node + func (Bytes) Type() schema.Type + func (x Bytes) AsBytes() ([]byte, error) + func (x Bytes) FieldData() Bytes + type Int struct + func (Int) AsBool() (bool, error) + func (Int) AsBytes() ([]byte, error) + func (Int) AsFloat() (float64, error) + func (Int) AsLink() (ipld.Link, error) + func (Int) AsString() (string, error) + func (Int) IsNull() bool + func (Int) IsUndefined() bool + func (Int) Length() int + func (Int) ListIterator() ipld.ListIterator + func (Int) Lookup(ipld.Node) (ipld.Node, error) + func (Int) LookupIndex(idx int) (ipld.Node, error) + func (Int) LookupSegment(seg ipld.PathSegment) (ipld.Node, error) + func (Int) LookupString(string) (ipld.Node, error) + func (Int) MapIterator() ipld.MapIterator + func (Int) NodeBuilder() ipld.NodeBuilder + func (Int) ReprKind() ipld.ReprKind + func (Int) Representation() ipld.Node + func (Int) Type() schema.Type + func (x Int) AsInt() (int, error) + func (x Int) FieldTsize() Int + func (x Int) Int() int + type Link struct + func (Link) AsBool() (bool, error) + func (Link) AsBytes() ([]byte, error) + func (Link) AsFloat() (float64, error) + func (Link) AsInt() (int, error) + func (Link) AsString() (string, error) + func (Link) IsNull() bool + func (Link) IsUndefined() bool + func (Link) Length() int + func (Link) ListIterator() ipld.ListIterator + func (Link) Lookup(ipld.Node) (ipld.Node, error) + func (Link) LookupIndex(idx int) (ipld.Node, error) + func (Link) LookupSegment(seg ipld.PathSegment) (ipld.Node, error) + func (Link) LookupString(string) (ipld.Node, error) + func (Link) MapIterator() ipld.MapIterator + func (Link) NodeBuilder() ipld.NodeBuilder + func (Link) ReprKind() ipld.ReprKind + func (Link) Representation() ipld.Node + func (Link) Type() schema.Type + func (x Link) AsLink() (ipld.Link, error) + func (x Link) FieldHash() Link + type MaybeBytes struct + Maybe typed.Maybe + Value Bytes + func (m MaybeBytes) Must() Bytes + type MaybeInt struct + Maybe typed.Maybe + Value Int + func (m MaybeInt) Must() Int + type MaybeLink struct + Maybe typed.Maybe + Value Link + func (m MaybeLink) Must() Link + type MaybePBLink struct + Maybe typed.Maybe + Value PBLink + func (m MaybePBLink) Must() PBLink + type MaybePBLinks struct + Maybe typed.Maybe + Value PBLinks + func (m MaybePBLinks) Must() PBLinks + type MaybePBNode struct + Maybe typed.Maybe + Value PBNode + func (m MaybePBNode) Must() PBNode + type MaybeRawNode struct + Maybe typed.Maybe + Value RawNode + func (m MaybeRawNode) Must() RawNode + type MaybeString struct + Maybe typed.Maybe + Value String + func (m MaybeString) Must() String + type PBLink struct + Hash *Link + Name *String + Tsize *Int + func (PBLink) AsBool() (bool, error) + func (PBLink) AsBytes() ([]byte, error) + func (PBLink) AsFloat() (float64, error) + func (PBLink) AsInt() (int, error) + func (PBLink) AsLink() (ipld.Link, error) + func (PBLink) AsString() (string, error) + func (PBLink) IsNull() bool + func (PBLink) IsUndefined() bool + func (PBLink) Length() int + func (PBLink) ListIterator() ipld.ListIterator + func (PBLink) LookupIndex(idx int) (ipld.Node, error) + func (PBLink) NodeBuilder() ipld.NodeBuilder + func (PBLink) ReprKind() ipld.ReprKind + func (PBLink) Type() schema.Type + func (n PBLink) LookupSegment(seg ipld.PathSegment) (ipld.Node, error) + func (n PBLink) Representation() ipld.Node + func (x PBLink) Lookup(key ipld.Node) (ipld.Node, error) + func (x PBLink) LookupString(key string) (ipld.Node, error) + func (x PBLink) MapIterator() ipld.MapIterator + type PBLink__Content struct + func (b PBLink__Content) Build() (PBLink, error) + func (b PBLink__Content) MustBuild() PBLink + type PBLinks struct + func (PBLinks) AsBool() (bool, error) + func (PBLinks) AsBytes() ([]byte, error) + func (PBLinks) AsFloat() (float64, error) + func (PBLinks) AsInt() (int, error) + func (PBLinks) AsLink() (ipld.Link, error) + func (PBLinks) AsString() (string, error) + func (PBLinks) IsNull() bool + func (PBLinks) IsUndefined() bool + func (PBLinks) LookupString(string) (ipld.Node, error) + func (PBLinks) MapIterator() ipld.MapIterator + func (PBLinks) NodeBuilder() ipld.NodeBuilder + func (PBLinks) ReprKind() ipld.ReprKind + func (PBLinks) Type() schema.Type + func (n PBLinks) LookupSegment(seg ipld.PathSegment) (ipld.Node, error) + func (n PBLinks) Representation() ipld.Node + func (x PBLinks) FieldLinks() PBLinks + func (x PBLinks) Length() int + func (x PBLinks) ListIterator() ipld.ListIterator + func (x PBLinks) Lookup(key ipld.Node) (ipld.Node, error) + func (x PBLinks) LookupIndex(index int) (ipld.Node, error) + type PBNode struct + Data Bytes + Links PBLinks + func (PBNode) AsBool() (bool, error) + func (PBNode) AsBytes() ([]byte, error) + func (PBNode) AsFloat() (float64, error) + func (PBNode) AsInt() (int, error) + func (PBNode) AsLink() (ipld.Link, error) + func (PBNode) AsString() (string, error) + func (PBNode) IsNull() bool + func (PBNode) IsUndefined() bool + func (PBNode) Length() int + func (PBNode) ListIterator() ipld.ListIterator + func (PBNode) LookupIndex(idx int) (ipld.Node, error) + func (PBNode) NodeBuilder() ipld.NodeBuilder + func (PBNode) ReprKind() ipld.ReprKind + func (PBNode) Type() schema.Type + func (n PBNode) LookupSegment(seg ipld.PathSegment) (ipld.Node, error) + func (n PBNode) Representation() ipld.Node + func (nd PBNode) EncodeDagProto(w io.Writer) error + func (x PBNode) Lookup(key ipld.Node) (ipld.Node, error) + func (x PBNode) LookupString(key string) (ipld.Node, error) + func (x PBNode) MapIterator() ipld.MapIterator + type PBNode__Content struct + func (b PBNode__Content) Build() (PBNode, error) + func (b PBNode__Content) MustBuild() PBNode + type RawNode struct + func (RawNode) AsBool() (bool, error) + func (RawNode) AsFloat() (float64, error) + func (RawNode) AsInt() (int, error) + func (RawNode) AsLink() (ipld.Link, error) + func (RawNode) AsString() (string, error) + func (RawNode) IsNull() bool + func (RawNode) IsUndefined() bool + func (RawNode) Length() int + func (RawNode) ListIterator() ipld.ListIterator + func (RawNode) Lookup(ipld.Node) (ipld.Node, error) + func (RawNode) LookupIndex(idx int) (ipld.Node, error) + func (RawNode) LookupSegment(seg ipld.PathSegment) (ipld.Node, error) + func (RawNode) LookupString(string) (ipld.Node, error) + func (RawNode) MapIterator() ipld.MapIterator + func (RawNode) NodeBuilder() ipld.NodeBuilder + func (RawNode) ReprKind() ipld.ReprKind + func (RawNode) Representation() ipld.Node + func (RawNode) Type() schema.Type + func (nd RawNode) EncodeDagRaw(w io.Writer) error + func (x RawNode) AsBytes() ([]byte, error) + type String struct + func (String) AsBool() (bool, error) + func (String) AsBytes() ([]byte, error) + func (String) AsFloat() (float64, error) + func (String) AsInt() (int, error) + func (String) AsLink() (ipld.Link, error) + func (String) IsNull() bool + func (String) IsUndefined() bool + func (String) Length() int + func (String) ListIterator() ipld.ListIterator + func (String) Lookup(ipld.Node) (ipld.Node, error) + func (String) LookupIndex(idx int) (ipld.Node, error) + func (String) LookupSegment(seg ipld.PathSegment) (ipld.Node, error) + func (String) LookupString(string) (ipld.Node, error) + func (String) MapIterator() ipld.MapIterator + func (String) NodeBuilder() ipld.NodeBuilder + func (String) ReprKind() ipld.ReprKind + func (String) Representation() ipld.Node + func (String) Type() schema.Type + func (x String) AsString() (string, error) + func (x String) FieldName() String + func (x String) String() string + type String__Content struct + Value string + func (b String__Content) Build() (String, error) + func (b String__Content) MustBuild() String