chaintypes

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2020 License: Apache-2.0, MIT Imports: 3 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

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() (int, error)
func (Block) AsLink() (ipld.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) Length

func (Block) Length() int

func (Block) ListIterator

func (Block) ListIterator() ipld.ListIterator

func (Block) LookupByIndex

func (Block) LookupByIndex(idx int) (ipld.Node, error)

func (Block) LookupByNode

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

func (Block) LookupBySegment

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

func (Block) LookupByString

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

func (Block) MapIterator

func (n Block) MapIterator() ipld.MapIterator

func (Block) Prototype

func (Block) Prototype() ipld.NodePrototype

func (Block) ReprKind

func (Block) ReprKind() ipld.ReprKind

func (Block) Representation

func (n Block) Representation() ipld.Node

func (Block) Type

func (Block) Type() schema.Type

type Bytes

type Bytes = *_Bytes

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() (int, error)
func (Bytes) AsLink() (ipld.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) Length

func (Bytes) Length() int

func (Bytes) ListIterator

func (Bytes) ListIterator() ipld.ListIterator

func (Bytes) LookupByIndex

func (Bytes) LookupByIndex(idx int) (ipld.Node, error)

func (Bytes) LookupByNode

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

func (Bytes) LookupBySegment

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

func (Bytes) LookupByString

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

func (Bytes) MapIterator

func (Bytes) MapIterator() ipld.MapIterator

func (Bytes) Prototype

func (Bytes) Prototype() ipld.NodePrototype

func (Bytes) ReprKind

func (Bytes) ReprKind() ipld.ReprKind

func (Bytes) Representation

func (n Bytes) Representation() ipld.Node

func (Bytes) Type

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

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() (int, error)
func (n Link) AsLink() (ipld.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) Length

func (Link) Length() int
func (n Link) Link() ipld.Link

func (Link) ListIterator

func (Link) ListIterator() ipld.ListIterator

func (Link) LookupByIndex

func (Link) LookupByIndex(idx int) (ipld.Node, error)

func (Link) LookupByNode

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

func (Link) LookupBySegment

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

func (Link) LookupByString

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

func (Link) MapIterator

func (Link) MapIterator() ipld.MapIterator

func (Link) Prototype

func (Link) Prototype() ipld.NodePrototype

func (Link) ReprKind

func (Link) ReprKind() ipld.ReprKind

func (Link) Representation

func (n Link) Representation() ipld.Node

func (Link) Type

func (Link) Type() schema.Type

type MaybeBlock

type MaybeBlock = *_Block__Maybe

func (MaybeBlock) AsNode

func (m MaybeBlock) AsNode() ipld.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() ipld.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() ipld.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() ipld.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() ipld.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() ipld.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

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() (int, error)
func (Messages) AsLink() (ipld.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) Length

func (n Messages) Length() int

func (Messages) ListIterator

func (n Messages) ListIterator() ipld.ListIterator

func (Messages) LookupByIndex

func (n Messages) LookupByIndex(idx int) (ipld.Node, error)

func (Messages) LookupByNode

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

func (Messages) LookupBySegment

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

func (Messages) LookupByString

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

func (Messages) MapIterator

func (Messages) MapIterator() ipld.MapIterator

func (Messages) Prototype

func (Messages) Prototype() ipld.NodePrototype

func (Messages) ReprKind

func (Messages) ReprKind() ipld.ReprKind

func (Messages) Representation

func (n Messages) Representation() ipld.Node

func (Messages) Type

func (Messages) Type() schema.Type

type Parents

type Parents = *_Parents

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() (int, error)
func (Parents) AsLink() (ipld.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) Length

func (n Parents) Length() int

func (Parents) ListIterator

func (n Parents) ListIterator() ipld.ListIterator

func (Parents) LookupByIndex

func (n Parents) LookupByIndex(idx int) (ipld.Node, error)

func (Parents) LookupByNode

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

func (Parents) LookupBySegment

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

func (Parents) LookupByString

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

func (Parents) MapIterator

func (Parents) MapIterator() ipld.MapIterator

func (Parents) Prototype

func (Parents) Prototype() ipld.NodePrototype

func (Parents) ReprKind

func (Parents) ReprKind() ipld.ReprKind

func (Parents) Representation

func (n Parents) Representation() ipld.Node

func (Parents) Type

func (Parents) Type() schema.Type

type String

type String = *_String

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() (int, error)
func (String) AsLink() (ipld.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) Length

func (String) Length() int

func (String) ListIterator

func (String) ListIterator() ipld.ListIterator

func (String) LookupByIndex

func (String) LookupByIndex(idx int) (ipld.Node, error)

func (String) LookupByNode

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

func (String) LookupBySegment

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

func (String) LookupByString

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

func (String) MapIterator

func (String) MapIterator() ipld.MapIterator

func (String) Prototype

func (String) Prototype() ipld.NodePrototype

func (String) ReprKind

func (String) ReprKind() ipld.ReprKind

func (String) Representation

func (n String) Representation() ipld.Node

func (String) String

func (n String) String() string

func (String) Type

func (String) Type() schema.Type

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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