gendemo

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2021 License: MIT Imports: 4 Imported by: 0

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:

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

and:

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

Functions

This section is empty.

Types

type Int

type Int = *_Int

Int matches the LD 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() (ld.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() ld.Kind

func (Int) Length

func (Int) Length() int64

func (Int) ListIterator

func (Int) ListIterator() ld.ListIterator

func (Int) LookupByIndex

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

func (Int) LookupByNode

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

func (Int) LookupBySegment

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

func (Int) LookupByString

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

func (Int) MapIterator

func (Int) MapIterator() ld.MapIterator

func (Int) Prototype

func (Int) Prototype() ld.NodePrototype

func (Int) Representation

func (n Int) Representation() ld.Node

func (Int) Type

func (Int) Type() schema.Type

type Map__String__Msg3

type Map__String__Msg3 = *_Map__String__Msg3

Map__String__Msg3 matches the LD Schema type "Map__String__Msg3". It has map kind.

func (Map__String__Msg3) AsBool

func (Map__String__Msg3) AsBool() (bool, error)

func (Map__String__Msg3) AsBytes

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

func (Map__String__Msg3) AsFloat

func (Map__String__Msg3) AsFloat() (float64, error)

func (Map__String__Msg3) AsInt

func (Map__String__Msg3) AsInt() (int64, error)
func (Map__String__Msg3) AsLink() (ld.Link, error)

func (Map__String__Msg3) AsString

func (Map__String__Msg3) AsString() (string, error)

func (Map__String__Msg3) IsAbsent

func (Map__String__Msg3) IsAbsent() bool

func (Map__String__Msg3) IsNull

func (Map__String__Msg3) IsNull() bool

func (Map__String__Msg3) Iterator

func (Map__String__Msg3) Kind

func (Map__String__Msg3) Kind() ld.Kind

func (Map__String__Msg3) Length

func (n Map__String__Msg3) Length() int64

func (Map__String__Msg3) ListIterator

func (Map__String__Msg3) ListIterator() ld.ListIterator

func (Map__String__Msg3) LookupByIndex

func (Map__String__Msg3) LookupByIndex(idx int64) (ld.Node, error)

func (Map__String__Msg3) LookupByNode

func (n Map__String__Msg3) LookupByNode(k ld.Node) (ld.Node, error)

func (Map__String__Msg3) LookupBySegment

func (n Map__String__Msg3) LookupBySegment(seg ld.PathSegment) (ld.Node, error)

func (Map__String__Msg3) LookupByString

func (n Map__String__Msg3) LookupByString(k string) (ld.Node, error)

func (Map__String__Msg3) MapIterator

func (n Map__String__Msg3) MapIterator() ld.MapIterator

func (Map__String__Msg3) Prototype

func (Map__String__Msg3) Prototype() ld.NodePrototype

func (Map__String__Msg3) Representation

func (n Map__String__Msg3) Representation() ld.Node

func (Map__String__Msg3) Type

func (Map__String__Msg3) Type() schema.Type

type Map__String__Msg3__Itr

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

func (*Map__String__Msg3__Itr) Done

func (itr *Map__String__Msg3__Itr) Done() bool

func (*Map__String__Msg3__Itr) Next

func (itr *Map__String__Msg3__Itr) Next() (k String, v Msg3)

type MaybeInt

type MaybeInt = *_Int__Maybe

func (MaybeInt) AsNode

func (m MaybeInt) AsNode() ld.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 MaybeMap__String__Msg3

type MaybeMap__String__Msg3 = *_Map__String__Msg3__Maybe

func (MaybeMap__String__Msg3) AsNode

func (m MaybeMap__String__Msg3) AsNode() ld.Node

func (MaybeMap__String__Msg3) Exists

func (m MaybeMap__String__Msg3) Exists() bool

func (MaybeMap__String__Msg3) IsAbsent

func (m MaybeMap__String__Msg3) IsAbsent() bool

func (MaybeMap__String__Msg3) IsNull

func (m MaybeMap__String__Msg3) IsNull() bool

func (MaybeMap__String__Msg3) Must

type MaybeMsg3

type MaybeMsg3 = *_Msg3__Maybe

func (MaybeMsg3) AsNode

func (m MaybeMsg3) AsNode() ld.Node

func (MaybeMsg3) Exists

func (m MaybeMsg3) Exists() bool

func (MaybeMsg3) IsAbsent

func (m MaybeMsg3) IsAbsent() bool

func (MaybeMsg3) IsNull

func (m MaybeMsg3) IsNull() bool

func (MaybeMsg3) Must

func (m MaybeMsg3) Must() Msg3

type MaybeString

type MaybeString = *_String__Maybe

func (MaybeString) AsNode

func (m MaybeString) AsNode() ld.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 Msg3

type Msg3 = *_Msg3

Msg3 matches the LD Schema type "Msg3". It has Struct type-kind, and may be interrogated like map kind.

func (Msg3) AsBool

func (Msg3) AsBool() (bool, error)

func (Msg3) AsBytes

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

func (Msg3) AsFloat

func (Msg3) AsFloat() (float64, error)

func (Msg3) AsInt

func (Msg3) AsInt() (int64, error)
func (Msg3) AsLink() (ld.Link, error)

func (Msg3) AsString

func (Msg3) AsString() (string, error)

func (Msg3) IsAbsent

func (Msg3) IsAbsent() bool

func (Msg3) IsNull

func (Msg3) IsNull() bool

func (Msg3) Kind

func (Msg3) Kind() ld.Kind

func (Msg3) Length

func (Msg3) Length() int64

func (Msg3) ListIterator

func (Msg3) ListIterator() ld.ListIterator

func (Msg3) LookupByIndex

func (Msg3) LookupByIndex(idx int64) (ld.Node, error)

func (Msg3) LookupByNode

func (n Msg3) LookupByNode(key ld.Node) (ld.Node, error)

func (Msg3) LookupBySegment

func (n Msg3) LookupBySegment(seg ld.PathSegment) (ld.Node, error)

func (Msg3) LookupByString

func (n Msg3) LookupByString(key string) (ld.Node, error)

func (Msg3) MapIterator

func (n Msg3) MapIterator() ld.MapIterator

func (Msg3) Prototype

func (Msg3) Prototype() ld.NodePrototype

func (Msg3) Representation

func (n Msg3) Representation() ld.Node

func (Msg3) Type

func (Msg3) Type() schema.Type

type String

type String = *_String

String matches the LD 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() (ld.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() ld.Kind

func (String) Length

func (String) Length() int64

func (String) ListIterator

func (String) ListIterator() ld.ListIterator

func (String) LookupByIndex

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

func (String) LookupByNode

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

func (String) LookupBySegment

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

func (String) LookupByString

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

func (String) MapIterator

func (String) MapIterator() ld.MapIterator

func (String) Prototype

func (String) Prototype() ld.NodePrototype

func (String) Representation

func (n String) Representation() ld.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