Documentation ¶
Index ¶
- Variables
- 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
- func (Bytes) AsBool() (bool, error)
- func (x Bytes) AsBytes() ([]byte, error)
- func (Bytes) AsFloat() (float64, error)
- func (Bytes) AsInt() (int, error)
- func (Bytes) AsLink() (ipld.Link, error)
- func (Bytes) AsString() (string, error)
- func (x Bytes) FieldData() Bytes
- 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
- type Int
- func (Int) AsBool() (bool, error)
- func (Int) AsBytes() ([]byte, error)
- func (Int) AsFloat() (float64, error)
- func (x Int) AsInt() (int, error)
- func (Int) AsLink() (ipld.Link, error)
- func (Int) AsString() (string, error)
- func (x Int) FieldTsize() Int
- func (x Int) Int() int
- 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
- type Link
- func (Link) AsBool() (bool, error)
- func (Link) AsBytes() ([]byte, error)
- func (Link) AsFloat() (float64, error)
- func (Link) AsInt() (int, error)
- func (x Link) AsLink() (ipld.Link, error)
- func (Link) AsString() (string, error)
- func (x Link) FieldHash() Link
- 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
- type MaybeBytes
- type MaybeInt
- type MaybeLink
- type MaybePBLink
- type MaybePBLinks
- type MaybePBNode
- type MaybeRawNode
- type MaybeString
- type PBLink
- 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 (x PBLink) Lookup(key ipld.Node) (ipld.Node, error)
- func (PBLink) LookupIndex(idx int) (ipld.Node, error)
- func (n PBLink) LookupSegment(seg ipld.PathSegment) (ipld.Node, error)
- func (x PBLink) LookupString(key string) (ipld.Node, error)
- func (x PBLink) MapIterator() ipld.MapIterator
- func (PBLink) NodeBuilder() ipld.NodeBuilder
- func (PBLink) ReprKind() ipld.ReprKind
- func (n PBLink) Representation() ipld.Node
- func (PBLink) Type() schema.Type
- type PBLink__Content
- type PBLinks
- 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 (x PBLinks) FieldLinks() PBLinks
- func (PBLinks) IsNull() bool
- func (PBLinks) IsUndefined() bool
- 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)
- func (n PBLinks) LookupSegment(seg ipld.PathSegment) (ipld.Node, error)
- func (PBLinks) LookupString(string) (ipld.Node, error)
- func (PBLinks) MapIterator() ipld.MapIterator
- func (PBLinks) NodeBuilder() ipld.NodeBuilder
- func (PBLinks) ReprKind() ipld.ReprKind
- func (n PBLinks) Representation() ipld.Node
- func (PBLinks) Type() schema.Type
- type PBNode
- 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 (nd PBNode) EncodeDagProto(w io.Writer) error
- func (PBNode) IsNull() bool
- func (PBNode) IsUndefined() bool
- func (PBNode) Length() int
- func (PBNode) ListIterator() ipld.ListIterator
- func (x PBNode) Lookup(key ipld.Node) (ipld.Node, error)
- func (PBNode) LookupIndex(idx int) (ipld.Node, error)
- func (n PBNode) LookupSegment(seg ipld.PathSegment) (ipld.Node, error)
- func (x PBNode) LookupString(key string) (ipld.Node, error)
- func (x PBNode) MapIterator() ipld.MapIterator
- func (PBNode) NodeBuilder() ipld.NodeBuilder
- func (PBNode) ReprKind() ipld.ReprKind
- func (n PBNode) Representation() ipld.Node
- func (PBNode) Type() schema.Type
- type PBNode__Content
- type RawNode
- func (RawNode) AsBool() (bool, error)
- func (x RawNode) AsBytes() ([]byte, error)
- func (RawNode) AsFloat() (float64, error)
- func (RawNode) AsInt() (int, error)
- func (RawNode) AsLink() (ipld.Link, error)
- func (RawNode) AsString() (string, error)
- func (nd RawNode) EncodeDagRaw(w io.Writer) 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
- type String
- 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 (x String) AsString() (string, error)
- func (x String) FieldName() String
- 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 (x String) String() string
- func (String) Type() schema.Type
- type String__Content
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNoAutomaticDecoding means the NodeBuilder must provide a fast path decoding method on its own ErrNoAutomaticDecoding = errors.New("No automatic decoding for this type, node builder must provide fast path") // ErrNoAutomaticEncoding means the Node must provide a fast path encoding method on its own ErrNoAutomaticEncoding = errors.New("No automatic encoding for this type, node must provide fast path") )
Functions ¶
func AddDagPBSupportToChooser ¶
func AddDagPBSupportToChooser(existing traversal.NodeBuilderChooser) traversal.NodeBuilderChooser
AddDagPBSupportToChooser takes an existing NodeBuilderChooser and subs in Protobuf and Raw node builders where neccesary
func Bytes__NodeBuilder ¶
func Bytes__NodeBuilder() ipld.NodeBuilder
func Int__NodeBuilder ¶
func Int__NodeBuilder() ipld.NodeBuilder
func Link__NodeBuilder ¶
func Link__NodeBuilder() ipld.NodeBuilder
func PBLink__NodeBuilder ¶
func PBLink__NodeBuilder() ipld.NodeBuilder
func PBLink__ReprBuilder ¶
func PBLink__ReprBuilder() ipld.NodeBuilder
func PBLinks__NodeBuilder ¶
func PBLinks__NodeBuilder() ipld.NodeBuilder
func PBNode__NodeBuilder ¶
func PBNode__NodeBuilder() ipld.NodeBuilder
func PBNode__ReprBuilder ¶
func PBNode__ReprBuilder() ipld.NodeBuilder
func RawDecoder ¶
RawDecoder is a decoder function for raw coded nodes
func RawEncoder ¶
RawEncoder encodes a node to a raw block structure
func RawNode__NodeBuilder ¶
func RawNode__NodeBuilder() ipld.NodeBuilder
func String__NodeBuilder ¶
func String__NodeBuilder() ipld.NodeBuilder
Types ¶
type Bytes ¶
type Bytes struct {
// contains filtered or unexported fields
}
func (Bytes) IsUndefined ¶
func (Bytes) ListIterator ¶
func (Bytes) ListIterator() ipld.ListIterator
func (Bytes) LookupSegment ¶
func (Bytes) MapIterator ¶
func (Bytes) MapIterator() ipld.MapIterator
func (Bytes) NodeBuilder ¶
func (Bytes) NodeBuilder() ipld.NodeBuilder
func (Bytes) Representation ¶
type Int ¶
type Int struct {
// contains filtered or unexported fields
}
func (Int) FieldTsize ¶
func (Int) IsUndefined ¶
func (Int) ListIterator ¶
func (Int) ListIterator() ipld.ListIterator
func (Int) LookupSegment ¶
func (Int) MapIterator ¶
func (Int) MapIterator() ipld.MapIterator
func (Int) NodeBuilder ¶
func (Int) NodeBuilder() ipld.NodeBuilder
func (Int) Representation ¶
type Link ¶
type Link struct {
// contains filtered or unexported fields
}
func (Link) IsUndefined ¶
func (Link) ListIterator ¶
func (Link) ListIterator() ipld.ListIterator
func (Link) LookupSegment ¶
func (Link) MapIterator ¶
func (Link) MapIterator() ipld.MapIterator
func (Link) NodeBuilder ¶
func (Link) NodeBuilder() ipld.NodeBuilder
func (Link) Representation ¶
type MaybeBytes ¶
TODO generateKindBytes.EmitNativeAccessors TODO generateKindBytes.EmitNativeBuilder
func (MaybeBytes) Must ¶
func (m MaybeBytes) Must() Bytes
type MaybePBLink ¶
func (MaybePBLink) Must ¶
func (m MaybePBLink) Must() PBLink
type MaybePBLinks ¶
TODO generateKindList.EmitNativeAccessors TODO generateKindList.EmitNativeBuilder
func (MaybePBLinks) Must ¶
func (m MaybePBLinks) Must() PBLinks
type MaybePBNode ¶
func (MaybePBNode) Must ¶
func (m MaybePBNode) Must() PBNode
type MaybeRawNode ¶
TODO generateKindBytes.EmitNativeAccessors TODO generateKindBytes.EmitNativeBuilder
func (MaybeRawNode) Must ¶
func (m MaybeRawNode) Must() RawNode
type MaybeString ¶
func (MaybeString) Must ¶
func (m MaybeString) Must() String
type PBLink ¶
func (PBLink) IsUndefined ¶
func (PBLink) ListIterator ¶
func (PBLink) ListIterator() ipld.ListIterator
func (PBLink) LookupSegment ¶
func (PBLink) MapIterator ¶
func (x PBLink) MapIterator() ipld.MapIterator
func (PBLink) NodeBuilder ¶
func (PBLink) NodeBuilder() ipld.NodeBuilder
func (PBLink) Representation ¶
type PBLink__Content ¶
type PBLink__Content struct { }
func (PBLink__Content) Build ¶
func (b PBLink__Content) Build() (PBLink, error)
func (PBLink__Content) MustBuild ¶
func (b PBLink__Content) MustBuild() PBLink
type PBLinks ¶
type PBLinks struct {
// contains filtered or unexported fields
}
func (PBLinks) FieldLinks ¶
func (PBLinks) IsUndefined ¶
func (PBLinks) ListIterator ¶
func (x PBLinks) ListIterator() ipld.ListIterator
func (PBLinks) LookupSegment ¶
func (PBLinks) MapIterator ¶
func (PBLinks) MapIterator() ipld.MapIterator
func (PBLinks) NodeBuilder ¶
func (PBLinks) NodeBuilder() ipld.NodeBuilder
func (PBLinks) Representation ¶
type PBNode ¶
func (PBNode) EncodeDagProto ¶
EncodeDagProto is a fast path encoding to protobuf for PBNode types
func (PBNode) IsUndefined ¶
func (PBNode) ListIterator ¶
func (PBNode) ListIterator() ipld.ListIterator
func (PBNode) LookupSegment ¶
func (PBNode) MapIterator ¶
func (x PBNode) MapIterator() ipld.MapIterator
func (PBNode) NodeBuilder ¶
func (PBNode) NodeBuilder() ipld.NodeBuilder
func (PBNode) Representation ¶
type PBNode__Content ¶
type PBNode__Content struct { }
func (PBNode__Content) Build ¶
func (b PBNode__Content) Build() (PBNode, error)
func (PBNode__Content) MustBuild ¶
func (b PBNode__Content) MustBuild() PBNode
type RawNode ¶
type RawNode struct {
// contains filtered or unexported fields
}
func (RawNode) EncodeDagRaw ¶
EncodeDagRaw is a fast path encoding to protobuf for RawNode types
func (RawNode) IsUndefined ¶
func (RawNode) ListIterator ¶
func (RawNode) ListIterator() ipld.ListIterator
func (RawNode) LookupSegment ¶
func (RawNode) MapIterator ¶
func (RawNode) MapIterator() ipld.MapIterator
func (RawNode) NodeBuilder ¶
func (RawNode) NodeBuilder() ipld.NodeBuilder
func (RawNode) Representation ¶
type String ¶
type String struct {
// contains filtered or unexported fields
}
func (String) IsUndefined ¶
func (String) ListIterator ¶
func (String) ListIterator() ipld.ListIterator
func (String) LookupSegment ¶
func (String) MapIterator ¶
func (String) MapIterator() ipld.MapIterator
func (String) NodeBuilder ¶
func (String) NodeBuilder() ipld.NodeBuilder
func (String) Representation ¶
type String__Content ¶
type String__Content struct {
Value string
}
func (String__Content) Build ¶
func (b String__Content) Build() (String, error)
func (String__Content) MustBuild ¶
func (b String__Content) MustBuild() String
Source Files ¶
Click to show internal directories.
Click to hide internal directories.