ipldsch

package
v0.0.0-...-3423c7d Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package ipldsch provides Solana ledger IPLD schemas.

Index

Constants

This section is empty.

Variables

View Source
var Type typeSlab

Type is a struct embeding a NodePrototype/Type for every Node implementation in this package. One of its major uses is to start the construction of a value. You can use it like this:

ipldsch.Type.YourTypeName.NewBuilder().BeginMap() //...

and:

ipldsch.Type.OtherTypeName.NewBuilder().AssignString("x") // ...

Functions

This section is empty.

Types

type Block

type Block = *_Block

Block matches the IPLD Schema type "Block". It has struct type-kind, and may be interrogated like map kind.

func (Block) AsBool

func (Block) AsBool() (bool, error)

func (Block) AsBytes

func (Block) AsBytes() ([]byte, error)

func (Block) AsFloat

func (Block) AsFloat() (float64, error)

func (Block) AsInt

func (Block) AsInt() (int64, error)
func (Block) AsLink() (datamodel.Link, error)

func (Block) AsString

func (Block) AsString() (string, error)

func (Block) IsAbsent

func (Block) IsAbsent() bool

func (Block) IsNull

func (Block) IsNull() bool

func (Block) Kind

func (Block) Kind() datamodel.Kind

func (Block) Length

func (Block) Length() int64

func (Block) ListIterator

func (Block) ListIterator() datamodel.ListIterator

func (Block) LookupByIndex

func (Block) LookupByIndex(idx int64) (datamodel.Node, error)

func (Block) LookupByNode

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

func (Block) LookupBySegment

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

func (Block) LookupByString

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

func (Block) MapIterator

func (n Block) MapIterator() datamodel.MapIterator

func (Block) Prototype

func (Block) Prototype() datamodel.NodePrototype

func (Block) Representation

func (n Block) Representation() datamodel.Node

func (Block) Type

func (Block) Type() schema.Type

type Bool

type Bool = *_Bool

Bool matches the IPLD Schema type "Bool". It has bool kind.

func (Bool) AsBool

func (n Bool) AsBool() (bool, error)

func (Bool) AsBytes

func (Bool) AsBytes() ([]byte, error)

func (Bool) AsFloat

func (Bool) AsFloat() (float64, error)

func (Bool) AsInt

func (Bool) AsInt() (int64, error)
func (Bool) AsLink() (datamodel.Link, error)

func (Bool) AsString

func (Bool) AsString() (string, error)

func (Bool) Bool

func (n Bool) Bool() bool

func (Bool) IsAbsent

func (Bool) IsAbsent() bool

func (Bool) IsNull

func (Bool) IsNull() bool

func (Bool) Kind

func (Bool) Kind() datamodel.Kind

func (Bool) Length

func (Bool) Length() int64

func (Bool) ListIterator

func (Bool) ListIterator() datamodel.ListIterator

func (Bool) LookupByIndex

func (Bool) LookupByIndex(idx int64) (datamodel.Node, error)

func (Bool) LookupByNode

func (Bool) LookupByNode(datamodel.Node) (datamodel.Node, error)

func (Bool) LookupBySegment

func (Bool) LookupBySegment(seg datamodel.PathSegment) (datamodel.Node, error)

func (Bool) LookupByString

func (Bool) LookupByString(string) (datamodel.Node, error)

func (Bool) MapIterator

func (Bool) MapIterator() datamodel.MapIterator

func (Bool) Prototype

func (Bool) Prototype() datamodel.NodePrototype

func (Bool) Representation

func (n Bool) Representation() datamodel.Node

func (Bool) Type

func (Bool) Type() schema.Type

type Bytes

type Bytes = *_Bytes

Bytes matches the IPLD Schema type "Bytes". It has bytes kind.

func (Bytes) AsBool

func (Bytes) AsBool() (bool, error)

func (Bytes) AsBytes

func (n Bytes) AsBytes() ([]byte, error)

func (Bytes) AsFloat

func (Bytes) AsFloat() (float64, error)

func (Bytes) AsInt

func (Bytes) AsInt() (int64, error)
func (Bytes) AsLink() (datamodel.Link, error)

func (Bytes) AsString

func (Bytes) AsString() (string, error)

func (Bytes) Bytes

func (n Bytes) Bytes() []byte

func (Bytes) IsAbsent

func (Bytes) IsAbsent() bool

func (Bytes) IsNull

func (Bytes) IsNull() bool

func (Bytes) Kind

func (Bytes) Kind() datamodel.Kind

func (Bytes) Length

func (Bytes) Length() int64

func (Bytes) ListIterator

func (Bytes) ListIterator() datamodel.ListIterator

func (Bytes) LookupByIndex

func (Bytes) LookupByIndex(idx int64) (datamodel.Node, error)

func (Bytes) LookupByNode

func (Bytes) LookupByNode(datamodel.Node) (datamodel.Node, error)

func (Bytes) LookupBySegment

func (Bytes) LookupBySegment(seg datamodel.PathSegment) (datamodel.Node, error)

func (Bytes) LookupByString

func (Bytes) LookupByString(string) (datamodel.Node, error)

func (Bytes) MapIterator

func (Bytes) MapIterator() datamodel.MapIterator

func (Bytes) Prototype

func (Bytes) Prototype() datamodel.NodePrototype

func (Bytes) Representation

func (n Bytes) Representation() datamodel.Node

func (Bytes) Type

func (Bytes) Type() schema.Type

type Entry

type Entry = *_Entry

Entry matches the IPLD Schema type "Entry". It has struct type-kind, and may be interrogated like map kind.

func (Entry) AsBool

func (Entry) AsBool() (bool, error)

func (Entry) AsBytes

func (Entry) AsBytes() ([]byte, error)

func (Entry) AsFloat

func (Entry) AsFloat() (float64, error)

func (Entry) AsInt

func (Entry) AsInt() (int64, error)
func (Entry) AsLink() (datamodel.Link, error)

func (Entry) AsString

func (Entry) AsString() (string, error)

func (Entry) IsAbsent

func (Entry) IsAbsent() bool

func (Entry) IsNull

func (Entry) IsNull() bool

func (Entry) Kind

func (Entry) Kind() datamodel.Kind

func (Entry) Length

func (Entry) Length() int64

func (Entry) ListIterator

func (Entry) ListIterator() datamodel.ListIterator

func (Entry) LookupByIndex

func (Entry) LookupByIndex(idx int64) (datamodel.Node, error)

func (Entry) LookupByNode

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

func (Entry) LookupBySegment

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

func (Entry) LookupByString

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

func (Entry) MapIterator

func (n Entry) MapIterator() datamodel.MapIterator

func (Entry) Prototype

func (Entry) Prototype() datamodel.NodePrototype

func (Entry) Representation

func (n Entry) Representation() datamodel.Node

func (Entry) Type

func (Entry) Type() schema.Type

type Float

type Float = *_Float

Float matches the IPLD Schema type "Float". It has float kind.

func (Float) AsBool

func (Float) AsBool() (bool, error)

func (Float) AsBytes

func (Float) AsBytes() ([]byte, error)

func (Float) AsFloat

func (n Float) AsFloat() (float64, error)

func (Float) AsInt

func (Float) AsInt() (int64, error)
func (Float) AsLink() (datamodel.Link, error)

func (Float) AsString

func (Float) AsString() (string, error)

func (Float) Float

func (n Float) Float() float64

func (Float) IsAbsent

func (Float) IsAbsent() bool

func (Float) IsNull

func (Float) IsNull() bool

func (Float) Kind

func (Float) Kind() datamodel.Kind

func (Float) Length

func (Float) Length() int64

func (Float) ListIterator

func (Float) ListIterator() datamodel.ListIterator

func (Float) LookupByIndex

func (Float) LookupByIndex(idx int64) (datamodel.Node, error)

func (Float) LookupByNode

func (Float) LookupByNode(datamodel.Node) (datamodel.Node, error)

func (Float) LookupBySegment

func (Float) LookupBySegment(seg datamodel.PathSegment) (datamodel.Node, error)

func (Float) LookupByString

func (Float) LookupByString(string) (datamodel.Node, error)

func (Float) MapIterator

func (Float) MapIterator() datamodel.MapIterator

func (Float) Prototype

func (Float) Prototype() datamodel.NodePrototype

func (Float) Representation

func (n Float) Representation() datamodel.Node

func (Float) Type

func (Float) Type() schema.Type

type Hash

type Hash = *_Hash

Hash matches the IPLD Schema type "Hash". It has bytes kind.

func (Hash) AsBool

func (Hash) AsBool() (bool, error)

func (Hash) AsBytes

func (n Hash) AsBytes() ([]byte, error)

func (Hash) AsFloat

func (Hash) AsFloat() (float64, error)

func (Hash) AsInt

func (Hash) AsInt() (int64, error)
func (Hash) AsLink() (datamodel.Link, error)

func (Hash) AsString

func (Hash) AsString() (string, error)

func (Hash) Bytes

func (n Hash) Bytes() []byte

func (Hash) IsAbsent

func (Hash) IsAbsent() bool

func (Hash) IsNull

func (Hash) IsNull() bool

func (Hash) Kind

func (Hash) Kind() datamodel.Kind

func (Hash) Length

func (Hash) Length() int64

func (Hash) ListIterator

func (Hash) ListIterator() datamodel.ListIterator

func (Hash) LookupByIndex

func (Hash) LookupByIndex(idx int64) (datamodel.Node, error)

func (Hash) LookupByNode

func (Hash) LookupByNode(datamodel.Node) (datamodel.Node, error)

func (Hash) LookupBySegment

func (Hash) LookupBySegment(seg datamodel.PathSegment) (datamodel.Node, error)

func (Hash) LookupByString

func (Hash) LookupByString(string) (datamodel.Node, error)

func (Hash) MapIterator

func (Hash) MapIterator() datamodel.MapIterator

func (Hash) Prototype

func (Hash) Prototype() datamodel.NodePrototype

func (Hash) Representation

func (n Hash) Representation() datamodel.Node

func (Hash) Type

func (Hash) Type() schema.Type

type Int

type Int = *_Int

Int matches the IPLD Schema type "Int". It has int kind.

func (Int) AsBool

func (Int) AsBool() (bool, error)

func (Int) AsBytes

func (Int) AsBytes() ([]byte, error)

func (Int) AsFloat

func (Int) AsFloat() (float64, error)

func (Int) AsInt

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

func (Int) AsString

func (Int) AsString() (string, error)

func (Int) Int

func (n Int) Int() int64

func (Int) IsAbsent

func (Int) IsAbsent() bool

func (Int) IsNull

func (Int) IsNull() bool

func (Int) Kind

func (Int) Kind() datamodel.Kind

func (Int) Length

func (Int) Length() int64

func (Int) ListIterator

func (Int) ListIterator() datamodel.ListIterator

func (Int) LookupByIndex

func (Int) LookupByIndex(idx int64) (datamodel.Node, error)

func (Int) LookupByNode

func (Int) LookupByNode(datamodel.Node) (datamodel.Node, error)

func (Int) LookupBySegment

func (Int) LookupBySegment(seg datamodel.PathSegment) (datamodel.Node, error)

func (Int) LookupByString

func (Int) LookupByString(string) (datamodel.Node, error)

func (Int) MapIterator

func (Int) MapIterator() datamodel.MapIterator

func (Int) Prototype

func (Int) Prototype() datamodel.NodePrototype

func (Int) Representation

func (n Int) Representation() datamodel.Node

func (Int) Type

func (Int) Type() schema.Type
type Link = *_Link

Link matches the IPLD Schema type "Link". It has link kind.

func (Link) AsBool

func (Link) AsBool() (bool, error)

func (Link) AsBytes

func (Link) AsBytes() ([]byte, error)

func (Link) AsFloat

func (Link) AsFloat() (float64, error)

func (Link) AsInt

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

func (Link) AsString

func (Link) AsString() (string, error)

func (Link) IsAbsent

func (Link) IsAbsent() bool

func (Link) IsNull

func (Link) IsNull() bool

func (Link) Kind

func (Link) Kind() datamodel.Kind

func (Link) Length

func (Link) Length() int64
func (n Link) Link() datamodel.Link

func (Link) ListIterator

func (Link) ListIterator() datamodel.ListIterator

func (Link) LookupByIndex

func (Link) LookupByIndex(idx int64) (datamodel.Node, error)

func (Link) LookupByNode

func (Link) LookupByNode(datamodel.Node) (datamodel.Node, error)

func (Link) LookupBySegment

func (Link) LookupBySegment(seg datamodel.PathSegment) (datamodel.Node, error)

func (Link) LookupByString

func (Link) LookupByString(string) (datamodel.Node, error)

func (Link) MapIterator

func (Link) MapIterator() datamodel.MapIterator

func (Link) Prototype

func (Link) Prototype() datamodel.NodePrototype

func (Link) Representation

func (n Link) Representation() datamodel.Node

func (Link) Type

func (Link) Type() schema.Type
type List__Link = *_List__Link

List__Link matches the IPLD Schema type "List__Link". It has list kind.

func (List__Link) AsBool

func (List__Link) AsBool() (bool, error)

func (List__Link) AsBytes

func (List__Link) AsBytes() ([]byte, error)

func (List__Link) AsFloat

func (List__Link) AsFloat() (float64, error)

func (List__Link) AsInt

func (List__Link) AsInt() (int64, error)
func (List__Link) AsLink() (datamodel.Link, error)

func (List__Link) AsString

func (List__Link) AsString() (string, error)

func (List__Link) IsAbsent

func (List__Link) IsAbsent() bool

func (List__Link) IsNull

func (List__Link) IsNull() bool

func (List__Link) Iterator

func (n List__Link) Iterator() *List__Link__Itr

func (List__Link) Kind

func (List__Link) Kind() datamodel.Kind

func (List__Link) Length

func (n List__Link) Length() int64

func (List__Link) ListIterator

func (n List__Link) ListIterator() datamodel.ListIterator

func (List__Link) LookupByIndex

func (n List__Link) LookupByIndex(idx int64) (datamodel.Node, error)

func (List__Link) LookupByNode

func (n List__Link) LookupByNode(k datamodel.Node) (datamodel.Node, error)

func (List__Link) LookupBySegment

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

func (List__Link) LookupByString

func (List__Link) LookupByString(string) (datamodel.Node, error)

func (List__Link) MapIterator

func (List__Link) MapIterator() datamodel.MapIterator

func (List__Link) Prototype

func (List__Link) Prototype() datamodel.NodePrototype

func (List__Link) Representation

func (n List__Link) Representation() datamodel.Node

func (List__Link) Type

func (List__Link) Type() schema.Type
type List__Link__Itr struct {
	// contains filtered or unexported fields
}
func (itr *List__Link__Itr) Done() bool
func (itr *List__Link__Itr) Next() (idx int64, v Link)

type List__Shredding

type List__Shredding = *_List__Shredding

List__Shredding matches the IPLD Schema type "List__Shredding". It has list kind.

func (List__Shredding) AsBool

func (List__Shredding) AsBool() (bool, error)

func (List__Shredding) AsBytes

func (List__Shredding) AsBytes() ([]byte, error)

func (List__Shredding) AsFloat

func (List__Shredding) AsFloat() (float64, error)

func (List__Shredding) AsInt

func (List__Shredding) AsInt() (int64, error)
func (List__Shredding) AsLink() (datamodel.Link, error)

func (List__Shredding) AsString

func (List__Shredding) AsString() (string, error)

func (List__Shredding) IsAbsent

func (List__Shredding) IsAbsent() bool

func (List__Shredding) IsNull

func (List__Shredding) IsNull() bool

func (List__Shredding) Iterator

func (n List__Shredding) Iterator() *List__Shredding__Itr

func (List__Shredding) Kind

func (List__Shredding) Length

func (n List__Shredding) Length() int64

func (List__Shredding) ListIterator

func (n List__Shredding) ListIterator() datamodel.ListIterator

func (List__Shredding) LookupByIndex

func (n List__Shredding) LookupByIndex(idx int64) (datamodel.Node, error)

func (List__Shredding) LookupByNode

func (n List__Shredding) LookupByNode(k datamodel.Node) (datamodel.Node, error)

func (List__Shredding) LookupBySegment

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

func (List__Shredding) LookupByString

func (List__Shredding) LookupByString(string) (datamodel.Node, error)

func (List__Shredding) MapIterator

func (List__Shredding) MapIterator() datamodel.MapIterator

func (List__Shredding) Prototype

func (List__Shredding) Representation

func (n List__Shredding) Representation() datamodel.Node

func (List__Shredding) Type

func (List__Shredding) Type() schema.Type

type List__Shredding__Itr

type List__Shredding__Itr struct {
	// contains filtered or unexported fields
}

func (*List__Shredding__Itr) Done

func (itr *List__Shredding__Itr) Done() bool

func (*List__Shredding__Itr) Next

func (itr *List__Shredding__Itr) Next() (idx int64, v Shredding)

type MaybeBlock

type MaybeBlock = *_Block__Maybe

func (MaybeBlock) AsNode

func (m MaybeBlock) AsNode() datamodel.Node

func (MaybeBlock) Exists

func (m MaybeBlock) Exists() bool

func (MaybeBlock) IsAbsent

func (m MaybeBlock) IsAbsent() bool

func (MaybeBlock) IsNull

func (m MaybeBlock) IsNull() bool

func (MaybeBlock) Must

func (m MaybeBlock) Must() Block

type MaybeBool

type MaybeBool = *_Bool__Maybe

func (MaybeBool) AsNode

func (m MaybeBool) AsNode() datamodel.Node

func (MaybeBool) Exists

func (m MaybeBool) Exists() bool

func (MaybeBool) IsAbsent

func (m MaybeBool) IsAbsent() bool

func (MaybeBool) IsNull

func (m MaybeBool) IsNull() bool

func (MaybeBool) Must

func (m MaybeBool) Must() Bool

type MaybeBytes

type MaybeBytes = *_Bytes__Maybe

func (MaybeBytes) AsNode

func (m MaybeBytes) AsNode() datamodel.Node

func (MaybeBytes) Exists

func (m MaybeBytes) Exists() bool

func (MaybeBytes) IsAbsent

func (m MaybeBytes) IsAbsent() bool

func (MaybeBytes) IsNull

func (m MaybeBytes) IsNull() bool

func (MaybeBytes) Must

func (m MaybeBytes) Must() Bytes

type MaybeEntry

type MaybeEntry = *_Entry__Maybe

func (MaybeEntry) AsNode

func (m MaybeEntry) AsNode() datamodel.Node

func (MaybeEntry) Exists

func (m MaybeEntry) Exists() bool

func (MaybeEntry) IsAbsent

func (m MaybeEntry) IsAbsent() bool

func (MaybeEntry) IsNull

func (m MaybeEntry) IsNull() bool

func (MaybeEntry) Must

func (m MaybeEntry) Must() Entry

type MaybeFloat

type MaybeFloat = *_Float__Maybe

func (MaybeFloat) AsNode

func (m MaybeFloat) AsNode() datamodel.Node

func (MaybeFloat) Exists

func (m MaybeFloat) Exists() bool

func (MaybeFloat) IsAbsent

func (m MaybeFloat) IsAbsent() bool

func (MaybeFloat) IsNull

func (m MaybeFloat) IsNull() bool

func (MaybeFloat) Must

func (m MaybeFloat) Must() Float

type MaybeHash

type MaybeHash = *_Hash__Maybe

func (MaybeHash) AsNode

func (m MaybeHash) AsNode() datamodel.Node

func (MaybeHash) Exists

func (m MaybeHash) Exists() bool

func (MaybeHash) IsAbsent

func (m MaybeHash) IsAbsent() bool

func (MaybeHash) IsNull

func (m MaybeHash) IsNull() bool

func (MaybeHash) Must

func (m MaybeHash) Must() Hash

type MaybeInt

type MaybeInt = *_Int__Maybe

func (MaybeInt) AsNode

func (m MaybeInt) AsNode() datamodel.Node

func (MaybeInt) Exists

func (m MaybeInt) Exists() bool

func (MaybeInt) IsAbsent

func (m MaybeInt) IsAbsent() bool

func (MaybeInt) IsNull

func (m MaybeInt) IsNull() bool

func (MaybeInt) Must

func (m MaybeInt) Must() Int
type MaybeLink = *_Link__Maybe

func (MaybeLink) AsNode

func (m MaybeLink) AsNode() datamodel.Node

func (MaybeLink) Exists

func (m MaybeLink) Exists() bool

func (MaybeLink) IsAbsent

func (m MaybeLink) IsAbsent() bool

func (MaybeLink) IsNull

func (m MaybeLink) IsNull() bool

func (MaybeLink) Must

func (m MaybeLink) Must() Link
type MaybeList__Link = *_List__Link__Maybe

func (MaybeList__Link) AsNode

func (m MaybeList__Link) AsNode() datamodel.Node

func (MaybeList__Link) Exists

func (m MaybeList__Link) Exists() bool

func (MaybeList__Link) IsAbsent

func (m MaybeList__Link) IsAbsent() bool

func (MaybeList__Link) IsNull

func (m MaybeList__Link) IsNull() bool

func (MaybeList__Link) Must

func (m MaybeList__Link) Must() List__Link

type MaybeList__Shredding

type MaybeList__Shredding = *_List__Shredding__Maybe

func (MaybeList__Shredding) AsNode

func (m MaybeList__Shredding) AsNode() datamodel.Node

func (MaybeList__Shredding) Exists

func (m MaybeList__Shredding) Exists() bool

func (MaybeList__Shredding) IsAbsent

func (m MaybeList__Shredding) IsAbsent() bool

func (MaybeList__Shredding) IsNull

func (m MaybeList__Shredding) IsNull() bool

func (MaybeList__Shredding) Must

type MaybeShredding

type MaybeShredding = *_Shredding__Maybe

func (MaybeShredding) AsNode

func (m MaybeShredding) AsNode() datamodel.Node

func (MaybeShredding) Exists

func (m MaybeShredding) Exists() bool

func (MaybeShredding) IsAbsent

func (m MaybeShredding) IsAbsent() bool

func (MaybeShredding) IsNull

func (m MaybeShredding) IsNull() bool

func (MaybeShredding) Must

func (m MaybeShredding) Must() Shredding

type MaybeString

type MaybeString = *_String__Maybe

func (MaybeString) AsNode

func (m MaybeString) AsNode() datamodel.Node

func (MaybeString) Exists

func (m MaybeString) Exists() bool

func (MaybeString) IsAbsent

func (m MaybeString) IsAbsent() bool

func (MaybeString) IsNull

func (m MaybeString) IsNull() bool

func (MaybeString) Must

func (m MaybeString) Must() String

type MaybeTransaction

type MaybeTransaction = *_Transaction__Maybe

func (MaybeTransaction) AsNode

func (m MaybeTransaction) AsNode() datamodel.Node

func (MaybeTransaction) Exists

func (m MaybeTransaction) Exists() bool

func (MaybeTransaction) IsAbsent

func (m MaybeTransaction) IsAbsent() bool

func (MaybeTransaction) IsNull

func (m MaybeTransaction) IsNull() bool

func (MaybeTransaction) Must

func (m MaybeTransaction) Must() Transaction

type MaybeTransactionList

type MaybeTransactionList = *_TransactionList__Maybe

func (MaybeTransactionList) AsNode

func (m MaybeTransactionList) AsNode() datamodel.Node

func (MaybeTransactionList) Exists

func (m MaybeTransactionList) Exists() bool

func (MaybeTransactionList) IsAbsent

func (m MaybeTransactionList) IsAbsent() bool

func (MaybeTransactionList) IsNull

func (m MaybeTransactionList) IsNull() bool

func (MaybeTransactionList) Must

type Shredding

type Shredding = *_Shredding

Shredding matches the IPLD Schema type "Shredding". It has struct type-kind, and may be interrogated like map kind.

func (Shredding) AsBool

func (Shredding) AsBool() (bool, error)

func (Shredding) AsBytes

func (Shredding) AsBytes() ([]byte, error)

func (Shredding) AsFloat

func (Shredding) AsFloat() (float64, error)

func (Shredding) AsInt

func (Shredding) AsInt() (int64, error)
func (Shredding) AsLink() (datamodel.Link, error)

func (Shredding) AsString

func (Shredding) AsString() (string, error)

func (Shredding) IsAbsent

func (Shredding) IsAbsent() bool

func (Shredding) IsNull

func (Shredding) IsNull() bool

func (Shredding) Kind

func (Shredding) Kind() datamodel.Kind

func (Shredding) Length

func (Shredding) Length() int64

func (Shredding) ListIterator

func (Shredding) ListIterator() datamodel.ListIterator

func (Shredding) LookupByIndex

func (Shredding) LookupByIndex(idx int64) (datamodel.Node, error)

func (Shredding) LookupByNode

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

func (Shredding) LookupBySegment

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

func (Shredding) LookupByString

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

func (Shredding) MapIterator

func (n Shredding) MapIterator() datamodel.MapIterator

func (Shredding) Prototype

func (Shredding) Prototype() datamodel.NodePrototype

func (Shredding) Representation

func (n Shredding) Representation() datamodel.Node

func (Shredding) Type

func (Shredding) Type() schema.Type

type String

type String = *_String

String matches the IPLD Schema type "String". It has string kind.

func (String) AsBool

func (String) AsBool() (bool, error)

func (String) AsBytes

func (String) AsBytes() ([]byte, error)

func (String) AsFloat

func (String) AsFloat() (float64, error)

func (String) AsInt

func (String) AsInt() (int64, error)
func (String) AsLink() (datamodel.Link, error)

func (String) AsString

func (n String) AsString() (string, error)

func (String) IsAbsent

func (String) IsAbsent() bool

func (String) IsNull

func (String) IsNull() bool

func (String) Kind

func (String) Kind() datamodel.Kind

func (String) Length

func (String) Length() int64

func (String) ListIterator

func (String) ListIterator() datamodel.ListIterator

func (String) LookupByIndex

func (String) LookupByIndex(idx int64) (datamodel.Node, error)

func (String) LookupByNode

func (String) LookupByNode(datamodel.Node) (datamodel.Node, error)

func (String) LookupBySegment

func (String) LookupBySegment(seg datamodel.PathSegment) (datamodel.Node, error)

func (String) LookupByString

func (String) LookupByString(string) (datamodel.Node, error)

func (String) MapIterator

func (String) MapIterator() datamodel.MapIterator

func (String) Prototype

func (String) Prototype() datamodel.NodePrototype

func (String) Representation

func (n String) Representation() datamodel.Node

func (String) String

func (n String) String() string

func (String) Type

func (String) Type() schema.Type

type Transaction

type Transaction = *_Transaction

Transaction matches the IPLD Schema type "Transaction". It has bytes kind.

func (Transaction) AsBool

func (Transaction) AsBool() (bool, error)

func (Transaction) AsBytes

func (n Transaction) AsBytes() ([]byte, error)

func (Transaction) AsFloat

func (Transaction) AsFloat() (float64, error)

func (Transaction) AsInt

func (Transaction) AsInt() (int64, error)
func (Transaction) AsLink() (datamodel.Link, error)

func (Transaction) AsString

func (Transaction) AsString() (string, error)

func (Transaction) Bytes

func (n Transaction) Bytes() []byte

func (Transaction) IsAbsent

func (Transaction) IsAbsent() bool

func (Transaction) IsNull

func (Transaction) IsNull() bool

func (Transaction) Kind

func (Transaction) Kind() datamodel.Kind

func (Transaction) Length

func (Transaction) Length() int64

func (Transaction) ListIterator

func (Transaction) ListIterator() datamodel.ListIterator

func (Transaction) LookupByIndex

func (Transaction) LookupByIndex(idx int64) (datamodel.Node, error)

func (Transaction) LookupByNode

func (Transaction) LookupByNode(datamodel.Node) (datamodel.Node, error)

func (Transaction) LookupBySegment

func (Transaction) LookupBySegment(seg datamodel.PathSegment) (datamodel.Node, error)

func (Transaction) LookupByString

func (Transaction) LookupByString(string) (datamodel.Node, error)

func (Transaction) MapIterator

func (Transaction) MapIterator() datamodel.MapIterator

func (Transaction) Prototype

func (Transaction) Prototype() datamodel.NodePrototype

func (Transaction) Representation

func (n Transaction) Representation() datamodel.Node

func (Transaction) Type

func (Transaction) Type() schema.Type

type TransactionList

type TransactionList = *_TransactionList

TransactionList matches the IPLD Schema type "TransactionList". It has list kind.

func (TransactionList) AsBool

func (TransactionList) AsBool() (bool, error)

func (TransactionList) AsBytes

func (TransactionList) AsBytes() ([]byte, error)

func (TransactionList) AsFloat

func (TransactionList) AsFloat() (float64, error)

func (TransactionList) AsInt

func (TransactionList) AsInt() (int64, error)
func (TransactionList) AsLink() (datamodel.Link, error)

func (TransactionList) AsString

func (TransactionList) AsString() (string, error)

func (TransactionList) IsAbsent

func (TransactionList) IsAbsent() bool

func (TransactionList) IsNull

func (TransactionList) IsNull() bool

func (TransactionList) Iterator

func (n TransactionList) Iterator() *TransactionList__Itr

func (TransactionList) Kind

func (TransactionList) Length

func (n TransactionList) Length() int64

func (TransactionList) ListIterator

func (n TransactionList) ListIterator() datamodel.ListIterator

func (TransactionList) LookupByIndex

func (n TransactionList) LookupByIndex(idx int64) (datamodel.Node, error)

func (TransactionList) LookupByNode

func (n TransactionList) LookupByNode(k datamodel.Node) (datamodel.Node, error)

func (TransactionList) LookupBySegment

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

func (TransactionList) LookupByString

func (TransactionList) LookupByString(string) (datamodel.Node, error)

func (TransactionList) MapIterator

func (TransactionList) MapIterator() datamodel.MapIterator

func (TransactionList) Prototype

func (TransactionList) Representation

func (n TransactionList) Representation() datamodel.Node

func (TransactionList) Type

func (TransactionList) Type() schema.Type

type TransactionList__Itr

type TransactionList__Itr struct {
	// contains filtered or unexported fields
}

func (*TransactionList__Itr) Done

func (itr *TransactionList__Itr) Done() bool

func (*TransactionList__Itr) Next

func (itr *TransactionList__Itr) Next() (idx int64, v Link)

Jump to

Keyboard shortcuts

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