Documentation ¶
Index ¶
- Variables
- type Bar
- func (n Bar) AsBool() (bool, error)
- func (Bar) AsBytes() ([]byte, error)
- func (Bar) AsFloat() (float64, error)
- func (Bar) AsInt() (int64, error)
- func (Bar) AsLink() (datamodel.Link, error)
- func (Bar) AsString() (string, error)
- func (n Bar) Bool() bool
- func (Bar) IsAbsent() bool
- func (Bar) IsNull() bool
- func (Bar) Kind() datamodel.Kind
- func (Bar) Length() int64
- func (Bar) ListIterator() datamodel.ListIterator
- func (Bar) LookupByIndex(idx int64) (datamodel.Node, error)
- func (Bar) LookupByNode(datamodel.Node) (datamodel.Node, error)
- func (Bar) LookupBySegment(seg datamodel.PathSegment) (datamodel.Node, error)
- func (Bar) LookupByString(string) (datamodel.Node, error)
- func (Bar) MapIterator() datamodel.MapIterator
- func (Bar) Prototype() datamodel.NodePrototype
- func (n Bar) Representation() datamodel.Node
- func (Bar) Type() schema.Type
- type Baz
- func (Baz) AsBool() (bool, error)
- func (Baz) AsBytes() ([]byte, error)
- func (Baz) AsFloat() (float64, error)
- func (Baz) AsInt() (int64, error)
- func (Baz) AsLink() (datamodel.Link, error)
- func (n Baz) AsString() (string, error)
- func (Baz) IsAbsent() bool
- func (Baz) IsNull() bool
- func (Baz) Kind() datamodel.Kind
- func (Baz) Length() int64
- func (Baz) ListIterator() datamodel.ListIterator
- func (Baz) LookupByIndex(idx int64) (datamodel.Node, error)
- func (Baz) LookupByNode(datamodel.Node) (datamodel.Node, error)
- func (Baz) LookupBySegment(seg datamodel.PathSegment) (datamodel.Node, error)
- func (Baz) LookupByString(string) (datamodel.Node, error)
- func (Baz) MapIterator() datamodel.MapIterator
- func (Baz) Prototype() datamodel.NodePrototype
- func (n Baz) Representation() datamodel.Node
- func (n Baz) String() string
- func (Baz) Type() schema.Type
- type Foo
- func (Foo) AsBool() (bool, error)
- func (Foo) AsBytes() ([]byte, error)
- func (Foo) AsFloat() (float64, error)
- func (n Foo) AsInt() (int64, error)
- func (Foo) AsLink() (datamodel.Link, error)
- func (Foo) AsString() (string, error)
- func (n Foo) Int() int64
- func (Foo) IsAbsent() bool
- func (Foo) IsNull() bool
- func (Foo) Kind() datamodel.Kind
- func (Foo) Length() int64
- func (Foo) ListIterator() datamodel.ListIterator
- func (Foo) LookupByIndex(idx int64) (datamodel.Node, error)
- func (Foo) LookupByNode(datamodel.Node) (datamodel.Node, error)
- func (Foo) LookupBySegment(seg datamodel.PathSegment) (datamodel.Node, error)
- func (Foo) LookupByString(string) (datamodel.Node, error)
- func (Foo) MapIterator() datamodel.MapIterator
- func (Foo) Prototype() datamodel.NodePrototype
- func (n Foo) Representation() datamodel.Node
- func (Foo) Type() schema.Type
- type Int
- func (Int) AsBool() (bool, error)
- func (Int) AsBytes() ([]byte, error)
- func (Int) AsFloat() (float64, error)
- func (n Int) AsInt() (int64, error)
- func (Int) AsLink() (datamodel.Link, error)
- func (Int) AsString() (string, error)
- func (n Int) Int() int64
- func (Int) IsAbsent() bool
- func (Int) IsNull() bool
- func (Int) Kind() datamodel.Kind
- func (Int) Length() int64
- func (Int) ListIterator() datamodel.ListIterator
- func (Int) LookupByIndex(idx int64) (datamodel.Node, error)
- func (Int) LookupByNode(datamodel.Node) (datamodel.Node, error)
- func (Int) LookupBySegment(seg datamodel.PathSegment) (datamodel.Node, error)
- func (Int) LookupByString(string) (datamodel.Node, error)
- func (Int) MapIterator() datamodel.MapIterator
- func (Int) Prototype() datamodel.NodePrototype
- func (n Int) Representation() datamodel.Node
- func (Int) Type() schema.Type
- type Map__String__Msg3
- func (Map__String__Msg3) AsBool() (bool, error)
- func (Map__String__Msg3) AsBytes() ([]byte, error)
- func (Map__String__Msg3) AsFloat() (float64, error)
- func (Map__String__Msg3) AsInt() (int64, error)
- func (Map__String__Msg3) AsLink() (datamodel.Link, error)
- func (Map__String__Msg3) AsString() (string, error)
- func (Map__String__Msg3) IsAbsent() bool
- func (Map__String__Msg3) IsNull() bool
- func (n Map__String__Msg3) Iterator() *Map__String__Msg3__Itr
- func (Map__String__Msg3) Kind() datamodel.Kind
- func (n Map__String__Msg3) Length() int64
- func (Map__String__Msg3) ListIterator() datamodel.ListIterator
- func (Map__String__Msg3) LookupByIndex(idx int64) (datamodel.Node, error)
- func (n Map__String__Msg3) LookupByNode(k datamodel.Node) (datamodel.Node, error)
- func (n Map__String__Msg3) LookupBySegment(seg datamodel.PathSegment) (datamodel.Node, error)
- func (n Map__String__Msg3) LookupByString(k string) (datamodel.Node, error)
- func (n Map__String__Msg3) MapIterator() datamodel.MapIterator
- func (Map__String__Msg3) Prototype() datamodel.NodePrototype
- func (n Map__String__Msg3) Representation() datamodel.Node
- func (Map__String__Msg3) Type() schema.Type
- type Map__String__Msg3__Itr
- type MaybeBar
- type MaybeBaz
- type MaybeFoo
- type MaybeInt
- type MaybeMap__String__Msg3
- type MaybeMsg3
- type MaybeString
- type MaybeUnionKinded
- type Msg3
- func (Msg3) AsBool() (bool, error)
- func (Msg3) AsBytes() ([]byte, error)
- func (Msg3) AsFloat() (float64, error)
- func (Msg3) AsInt() (int64, error)
- func (Msg3) AsLink() (datamodel.Link, error)
- func (Msg3) AsString() (string, error)
- func (Msg3) IsAbsent() bool
- func (Msg3) IsNull() bool
- func (Msg3) Kind() datamodel.Kind
- func (Msg3) Length() int64
- func (Msg3) ListIterator() datamodel.ListIterator
- func (Msg3) LookupByIndex(idx int64) (datamodel.Node, error)
- func (n Msg3) LookupByNode(key datamodel.Node) (datamodel.Node, error)
- func (n Msg3) LookupBySegment(seg datamodel.PathSegment) (datamodel.Node, error)
- func (n Msg3) LookupByString(key string) (datamodel.Node, error)
- func (n Msg3) MapIterator() datamodel.MapIterator
- func (Msg3) Prototype() datamodel.NodePrototype
- func (n Msg3) Representation() datamodel.Node
- func (Msg3) Type() schema.Type
- type String
- func (String) AsBool() (bool, error)
- func (String) AsBytes() ([]byte, error)
- func (String) AsFloat() (float64, error)
- func (String) AsInt() (int64, error)
- func (String) AsLink() (datamodel.Link, error)
- func (n String) AsString() (string, error)
- func (String) IsAbsent() bool
- func (String) IsNull() bool
- func (String) Kind() datamodel.Kind
- func (String) Length() int64
- func (String) ListIterator() datamodel.ListIterator
- func (String) LookupByIndex(idx int64) (datamodel.Node, error)
- func (String) LookupByNode(datamodel.Node) (datamodel.Node, error)
- func (String) LookupBySegment(seg datamodel.PathSegment) (datamodel.Node, error)
- func (String) LookupByString(string) (datamodel.Node, error)
- func (String) MapIterator() datamodel.MapIterator
- func (String) Prototype() datamodel.NodePrototype
- func (n String) Representation() datamodel.Node
- func (n String) String() string
- func (String) Type() schema.Type
- type UnionKinded
- func (UnionKinded) AsBool() (bool, error)
- func (UnionKinded) AsBytes() ([]byte, error)
- func (UnionKinded) AsFloat() (float64, error)
- func (UnionKinded) AsInt() (int64, error)
- func (UnionKinded) AsLink() (datamodel.Link, error)
- func (UnionKinded) AsString() (string, error)
- func (UnionKinded) IsAbsent() bool
- func (UnionKinded) IsNull() bool
- func (UnionKinded) Kind() datamodel.Kind
- func (UnionKinded) Length() int64
- func (UnionKinded) ListIterator() datamodel.ListIterator
- func (UnionKinded) LookupByIndex(idx int64) (datamodel.Node, error)
- func (n UnionKinded) LookupByNode(key datamodel.Node) (datamodel.Node, error)
- func (n UnionKinded) LookupBySegment(seg datamodel.PathSegment) (datamodel.Node, error)
- func (n UnionKinded) LookupByString(key string) (datamodel.Node, error)
- func (n UnionKinded) MapIterator() datamodel.MapIterator
- func (UnionKinded) Prototype() datamodel.NodePrototype
- func (n UnionKinded) Representation() datamodel.Node
- func (UnionKinded) Type() schema.Type
Constants ¶
This section is empty.
Variables ¶
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 Bar ¶ added in v0.19.0
type Bar = *_Bar
Bar matches the IPLD Schema type "Bar". It has bool kind.
func (Bar) ListIterator ¶ added in v0.19.0
func (Bar) ListIterator() datamodel.ListIterator
func (Bar) LookupByIndex ¶ added in v0.19.0
func (Bar) LookupByNode ¶ added in v0.19.0
func (Bar) LookupBySegment ¶ added in v0.19.0
func (Bar) LookupByString ¶ added in v0.19.0
func (Bar) MapIterator ¶ added in v0.19.0
func (Bar) MapIterator() datamodel.MapIterator
func (Bar) Prototype ¶ added in v0.19.0
func (Bar) Prototype() datamodel.NodePrototype
func (Bar) Representation ¶ added in v0.19.0
type Baz ¶ added in v0.19.0
type Baz = *_Baz
Baz matches the IPLD Schema type "Baz". It has string kind.
func (Baz) ListIterator ¶ added in v0.19.0
func (Baz) ListIterator() datamodel.ListIterator
func (Baz) LookupByIndex ¶ added in v0.19.0
func (Baz) LookupByNode ¶ added in v0.19.0
func (Baz) LookupBySegment ¶ added in v0.19.0
func (Baz) LookupByString ¶ added in v0.19.0
func (Baz) MapIterator ¶ added in v0.19.0
func (Baz) MapIterator() datamodel.MapIterator
func (Baz) Prototype ¶ added in v0.19.0
func (Baz) Prototype() datamodel.NodePrototype
func (Baz) Representation ¶ added in v0.19.0
type Foo ¶ added in v0.19.0
type Foo = *_Foo
Foo matches the IPLD Schema type "Foo". It has int kind.
func (Foo) ListIterator ¶ added in v0.19.0
func (Foo) ListIterator() datamodel.ListIterator
func (Foo) LookupByIndex ¶ added in v0.19.0
func (Foo) LookupByNode ¶ added in v0.19.0
func (Foo) LookupBySegment ¶ added in v0.19.0
func (Foo) LookupByString ¶ added in v0.19.0
func (Foo) MapIterator ¶ added in v0.19.0
func (Foo) MapIterator() datamodel.MapIterator
func (Foo) Prototype ¶ added in v0.19.0
func (Foo) Prototype() datamodel.NodePrototype
func (Foo) Representation ¶ added in v0.19.0
type Int ¶ added in v0.4.0
type Int = *_Int
Int matches the IPLD Schema type "Int". It has int kind.
func (Int) ListIterator ¶ added in v0.4.0
func (Int) ListIterator() datamodel.ListIterator
func (Int) LookupByIndex ¶ added in v0.5.0
func (Int) LookupByNode ¶ added in v0.5.0
func (Int) LookupBySegment ¶ added in v0.5.0
func (Int) LookupByString ¶ added in v0.5.0
func (Int) MapIterator ¶ added in v0.4.0
func (Int) MapIterator() datamodel.MapIterator
func (Int) Prototype ¶ added in v0.5.0
func (Int) Prototype() datamodel.NodePrototype
func (Int) Representation ¶ added in v0.4.0
type Map__String__Msg3 ¶ added in v0.4.0
type Map__String__Msg3 = *_Map__String__Msg3
Map__String__Msg3 matches the IPLD Schema type "Map__String__Msg3". It has map kind.
func (Map__String__Msg3) AsBool ¶ added in v0.4.0
func (Map__String__Msg3) AsBool() (bool, error)
func (Map__String__Msg3) AsBytes ¶ added in v0.4.0
func (Map__String__Msg3) AsBytes() ([]byte, error)
func (Map__String__Msg3) AsFloat ¶ added in v0.4.0
func (Map__String__Msg3) AsFloat() (float64, error)
func (Map__String__Msg3) AsInt ¶ added in v0.4.0
func (Map__String__Msg3) AsInt() (int64, error)
func (Map__String__Msg3) AsLink ¶ added in v0.4.0
func (Map__String__Msg3) AsLink() (datamodel.Link, error)
func (Map__String__Msg3) AsString ¶ added in v0.4.0
func (Map__String__Msg3) AsString() (string, error)
func (Map__String__Msg3) IsAbsent ¶ added in v0.5.0
func (Map__String__Msg3) IsAbsent() bool
func (Map__String__Msg3) IsNull ¶ added in v0.4.0
func (Map__String__Msg3) IsNull() bool
func (Map__String__Msg3) Iterator ¶ added in v0.6.0
func (n Map__String__Msg3) Iterator() *Map__String__Msg3__Itr
func (Map__String__Msg3) Kind ¶ added in v0.7.0
func (Map__String__Msg3) Kind() datamodel.Kind
func (Map__String__Msg3) Length ¶ added in v0.4.0
func (n Map__String__Msg3) Length() int64
func (Map__String__Msg3) ListIterator ¶ added in v0.4.0
func (Map__String__Msg3) ListIterator() datamodel.ListIterator
func (Map__String__Msg3) LookupByIndex ¶ added in v0.5.0
func (Map__String__Msg3) LookupByIndex(idx int64) (datamodel.Node, error)
func (Map__String__Msg3) LookupByNode ¶ added in v0.5.0
func (Map__String__Msg3) LookupBySegment ¶ added in v0.5.0
func (n Map__String__Msg3) LookupBySegment(seg datamodel.PathSegment) (datamodel.Node, error)
func (Map__String__Msg3) LookupByString ¶ added in v0.5.0
func (n Map__String__Msg3) LookupByString(k string) (datamodel.Node, error)
func (Map__String__Msg3) MapIterator ¶ added in v0.4.0
func (n Map__String__Msg3) MapIterator() datamodel.MapIterator
func (Map__String__Msg3) Prototype ¶ added in v0.5.0
func (Map__String__Msg3) Prototype() datamodel.NodePrototype
func (Map__String__Msg3) Representation ¶ added in v0.4.0
func (n Map__String__Msg3) Representation() datamodel.Node
func (Map__String__Msg3) Type ¶ added in v0.4.0
func (Map__String__Msg3) Type() schema.Type
type Map__String__Msg3__Itr ¶ added in v0.6.0
type Map__String__Msg3__Itr struct {
// contains filtered or unexported fields
}
func (*Map__String__Msg3__Itr) Done ¶ added in v0.6.0
func (itr *Map__String__Msg3__Itr) Done() bool
func (*Map__String__Msg3__Itr) Next ¶ added in v0.6.0
func (itr *Map__String__Msg3__Itr) Next() (k String, v Msg3)
type MaybeMap__String__Msg3 ¶ added in v0.4.0
type MaybeMap__String__Msg3 = *_Map__String__Msg3__Maybe
func (MaybeMap__String__Msg3) AsNode ¶ added in v0.4.0
func (m MaybeMap__String__Msg3) AsNode() datamodel.Node
func (MaybeMap__String__Msg3) Exists ¶ added in v0.4.0
func (m MaybeMap__String__Msg3) Exists() bool
func (MaybeMap__String__Msg3) IsAbsent ¶ added in v0.5.0
func (m MaybeMap__String__Msg3) IsAbsent() bool
func (MaybeMap__String__Msg3) IsNull ¶ added in v0.4.0
func (m MaybeMap__String__Msg3) IsNull() bool
func (MaybeMap__String__Msg3) Must ¶ added in v0.4.0
func (m MaybeMap__String__Msg3) Must() Map__String__Msg3
type MaybeString ¶ added in v0.4.0
type MaybeString = *_String__Maybe
func (MaybeString) AsNode ¶ added in v0.4.0
func (m MaybeString) AsNode() datamodel.Node
func (MaybeString) Exists ¶ added in v0.4.0
func (m MaybeString) Exists() bool
func (MaybeString) IsAbsent ¶ added in v0.5.0
func (m MaybeString) IsAbsent() bool
func (MaybeString) IsNull ¶ added in v0.4.0
func (m MaybeString) IsNull() bool
func (MaybeString) Must ¶ added in v0.4.0
func (m MaybeString) Must() String
type MaybeUnionKinded ¶ added in v0.19.0
type MaybeUnionKinded = *_UnionKinded__Maybe
func (MaybeUnionKinded) AsNode ¶ added in v0.19.0
func (m MaybeUnionKinded) AsNode() datamodel.Node
func (MaybeUnionKinded) Exists ¶ added in v0.19.0
func (m MaybeUnionKinded) Exists() bool
func (MaybeUnionKinded) IsAbsent ¶ added in v0.19.0
func (m MaybeUnionKinded) IsAbsent() bool
func (MaybeUnionKinded) IsNull ¶ added in v0.19.0
func (m MaybeUnionKinded) IsNull() bool
func (MaybeUnionKinded) Must ¶ added in v0.19.0
func (m MaybeUnionKinded) Must() UnionKinded
type Msg3 ¶ added in v0.4.0
type Msg3 = *_Msg3
Msg3 matches the IPLD Schema type "Msg3". It has struct type-kind, and may be interrogated like map kind.
func (Msg3) ListIterator ¶ added in v0.4.0
func (Msg3) ListIterator() datamodel.ListIterator
func (Msg3) LookupByIndex ¶ added in v0.5.0
func (Msg3) LookupByNode ¶ added in v0.5.0
func (Msg3) LookupBySegment ¶ added in v0.5.0
func (Msg3) LookupByString ¶ added in v0.5.0
func (Msg3) MapIterator ¶ added in v0.4.0
func (n Msg3) MapIterator() datamodel.MapIterator
func (Msg3) Prototype ¶ added in v0.5.0
func (Msg3) Prototype() datamodel.NodePrototype
func (Msg3) Representation ¶ added in v0.4.0
type String ¶ added in v0.4.0
type String = *_String
String matches the IPLD Schema type "String". It has string kind.
func (String) ListIterator ¶ added in v0.4.0
func (String) ListIterator() datamodel.ListIterator
func (String) LookupByIndex ¶ added in v0.5.0
func (String) LookupByNode ¶ added in v0.5.0
func (String) LookupBySegment ¶ added in v0.5.0
func (String) LookupByString ¶ added in v0.5.0
func (String) MapIterator ¶ added in v0.4.0
func (String) MapIterator() datamodel.MapIterator
func (String) Prototype ¶ added in v0.5.0
func (String) Prototype() datamodel.NodePrototype
func (String) Representation ¶ added in v0.4.0
type UnionKinded ¶ added in v0.19.0
type UnionKinded = *_UnionKinded
UnionKinded matches the IPLD Schema type "UnionKinded". UnionKinded has union typekind, which means its data model behaviors are that of a map kind.
func (UnionKinded) AsBool ¶ added in v0.19.0
func (UnionKinded) AsBool() (bool, error)
func (UnionKinded) AsBytes ¶ added in v0.19.0
func (UnionKinded) AsBytes() ([]byte, error)
func (UnionKinded) AsFloat ¶ added in v0.19.0
func (UnionKinded) AsFloat() (float64, error)
func (UnionKinded) AsInt ¶ added in v0.19.0
func (UnionKinded) AsInt() (int64, error)
func (UnionKinded) AsString ¶ added in v0.19.0
func (UnionKinded) AsString() (string, error)
func (UnionKinded) IsAbsent ¶ added in v0.19.0
func (UnionKinded) IsAbsent() bool
func (UnionKinded) IsNull ¶ added in v0.19.0
func (UnionKinded) IsNull() bool
func (UnionKinded) Kind ¶ added in v0.19.0
func (UnionKinded) Kind() datamodel.Kind
func (UnionKinded) Length ¶ added in v0.19.0
func (UnionKinded) Length() int64
func (UnionKinded) ListIterator ¶ added in v0.19.0
func (UnionKinded) ListIterator() datamodel.ListIterator
func (UnionKinded) LookupByIndex ¶ added in v0.19.0
func (UnionKinded) LookupByIndex(idx int64) (datamodel.Node, error)
func (UnionKinded) LookupByNode ¶ added in v0.19.0
func (UnionKinded) LookupBySegment ¶ added in v0.19.0
func (n UnionKinded) LookupBySegment(seg datamodel.PathSegment) (datamodel.Node, error)
func (UnionKinded) LookupByString ¶ added in v0.19.0
func (n UnionKinded) LookupByString(key string) (datamodel.Node, error)
func (UnionKinded) MapIterator ¶ added in v0.19.0
func (n UnionKinded) MapIterator() datamodel.MapIterator
func (UnionKinded) Prototype ¶ added in v0.19.0
func (UnionKinded) Prototype() datamodel.NodePrototype
func (UnionKinded) Representation ¶ added in v0.19.0
func (n UnionKinded) Representation() datamodel.Node
func (UnionKinded) Type ¶ added in v0.19.0
func (UnionKinded) Type() schema.Type