chaintypes

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: Apache-2.0, MIT Imports: 4 Imported by: 1

Documentation

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:

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

and:

chaintypes.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 added in v0.7.0

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 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 added in v0.7.0

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 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 added in v0.7.0

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 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 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 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 MaybeMessages

type MaybeMessages = *_Messages__Maybe

func (MaybeMessages) AsNode

func (m MaybeMessages) AsNode() datamodel.Node

func (MaybeMessages) Exists

func (m MaybeMessages) Exists() bool

func (MaybeMessages) IsAbsent

func (m MaybeMessages) IsAbsent() bool

func (MaybeMessages) IsNull

func (m MaybeMessages) IsNull() bool

func (MaybeMessages) Must

func (m MaybeMessages) Must() Messages

type MaybeParents

type MaybeParents = *_Parents__Maybe

func (MaybeParents) AsNode

func (m MaybeParents) AsNode() datamodel.Node

func (MaybeParents) Exists

func (m MaybeParents) Exists() bool

func (MaybeParents) IsAbsent

func (m MaybeParents) IsAbsent() bool

func (MaybeParents) IsNull

func (m MaybeParents) IsNull() bool

func (MaybeParents) Must

func (m MaybeParents) Must() Parents

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 Messages

type Messages = *_Messages

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

func (Messages) AsBool

func (Messages) AsBool() (bool, error)

func (Messages) AsBytes

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

func (Messages) AsFloat

func (Messages) AsFloat() (float64, error)

func (Messages) AsInt

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

func (Messages) AsString

func (Messages) AsString() (string, error)

func (Messages) IsAbsent

func (Messages) IsAbsent() bool

func (Messages) IsNull

func (Messages) IsNull() bool

func (Messages) Iterator added in v0.7.0

func (n Messages) Iterator() *Messages__Itr

func (Messages) Kind added in v0.7.0

func (Messages) Kind() datamodel.Kind

func (Messages) Length

func (n Messages) Length() int64

func (Messages) ListIterator

func (n Messages) ListIterator() datamodel.ListIterator

func (Messages) LookupByIndex

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

func (Messages) LookupByNode

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

func (Messages) LookupBySegment

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

func (Messages) LookupByString

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

func (Messages) MapIterator

func (Messages) MapIterator() datamodel.MapIterator

func (Messages) Prototype

func (Messages) Prototype() datamodel.NodePrototype

func (Messages) Representation

func (n Messages) Representation() datamodel.Node

func (Messages) Type

func (Messages) Type() schema.Type

type Messages__Itr added in v0.7.0

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

func (*Messages__Itr) Done added in v0.7.0

func (itr *Messages__Itr) Done() bool

func (*Messages__Itr) Next added in v0.7.0

func (itr *Messages__Itr) Next() (idx int64, v Bytes)

type Parents

type Parents = *_Parents

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

func (Parents) AsBool

func (Parents) AsBool() (bool, error)

func (Parents) AsBytes

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

func (Parents) AsFloat

func (Parents) AsFloat() (float64, error)

func (Parents) AsInt

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

func (Parents) AsString

func (Parents) AsString() (string, error)

func (Parents) IsAbsent

func (Parents) IsAbsent() bool

func (Parents) IsNull

func (Parents) IsNull() bool

func (Parents) Iterator added in v0.7.0

func (n Parents) Iterator() *Parents__Itr

func (Parents) Kind added in v0.7.0

func (Parents) Kind() datamodel.Kind

func (Parents) Length

func (n Parents) Length() int64

func (Parents) ListIterator

func (n Parents) ListIterator() datamodel.ListIterator

func (Parents) LookupByIndex

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

func (Parents) LookupByNode

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

func (Parents) LookupBySegment

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

func (Parents) LookupByString

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

func (Parents) MapIterator

func (Parents) MapIterator() datamodel.MapIterator

func (Parents) Prototype

func (Parents) Prototype() datamodel.NodePrototype

func (Parents) Representation

func (n Parents) Representation() datamodel.Node

func (Parents) Type

func (Parents) Type() schema.Type

type Parents__Itr added in v0.7.0

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

func (*Parents__Itr) Done added in v0.7.0

func (itr *Parents__Itr) Done() bool

func (*Parents__Itr) Next added in v0.7.0

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

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 added in v0.7.0

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

Jump to

Keyboard shortcuts

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