ldsch_types.go 2.06 KB
Newer Older
1 2
package dagpb

3
// Code generated by go-ld-prime gengo.  DO NOT EDIT.
4 5

import (
6
	ld "gitlab.dms3.io/ld/go-ld-prime"
7
)
8

9
var _ ld.Node = nil // suppress errors when this dependency is not referenced
10 11 12 13 14 15 16 17 18 19 20 21 22
// 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:
//
// 		dagpb.Type.YourTypeName.NewBuilder().BeginMap() //...
//
// and:
//
// 		dagpb.Type.OtherTypeName.NewBuilder().AssignString("x") // ...
//
var Type typeSlab

type typeSlab struct {
23 24 25 26 27 28 29 30
	Bytes         _Bytes__Prototype
	Bytes__Repr   _Bytes__ReprPrototype
	Int           _Int__Prototype
	Int__Repr     _Int__ReprPrototype
	Link          _Link__Prototype
	Link__Repr    _Link__ReprPrototype
	PBLink        _PBLink__Prototype
	PBLink__Repr  _PBLink__ReprPrototype
31 32
	PBLinks       _PBLinks__Prototype
	PBLinks__Repr _PBLinks__ReprPrototype
33 34 35 36
	PBNode        _PBNode__Prototype
	PBNode__Repr  _PBNode__ReprPrototype
	String        _String__Prototype
	String__Repr  _String__ReprPrototype
37 38 39 40
}

// --- type definitions follow ---

41
// Bytes matches the LD Schema type "Bytes".  It has bytes kind.
42 43 44
type Bytes = *_Bytes
type _Bytes struct{ x []byte }

45
// Int matches the LD Schema type "Int".  It has int kind.
46
type Int = *_Int
47
type _Int struct{ x int64 }
48

49
// Link matches the LD Schema type "Link".  It has link kind.
50
type Link = *_Link
51
type _Link struct{ x ld.Link }
52

53
// PBLink matches the LD Schema type "PBLink".  It has Struct type-kind, and may be interrogated like map kind.
54 55
type PBLink = *_PBLink
type _PBLink struct {
56 57
	Hash  _Link
	Name  _String__Maybe
58 59 60
	Tsize _Int__Maybe
}

61
// PBLinks matches the LD Schema type "PBLinks".  It has list kind.
62 63 64 65 66
type PBLinks = *_PBLinks
type _PBLinks struct {
	x []_PBLink
}

67
// PBNode matches the LD Schema type "PBNode".  It has Struct type-kind, and may be interrogated like map kind.
68 69 70
type PBNode = *_PBNode
type _PBNode struct {
	Links _PBLinks
71
	Data  _Bytes__Maybe
72 73
}

74
// String matches the LD Schema type "String".  It has string kind.
75 76
type String = *_String
type _String struct{ x string }