ipldsch_minima.go 1.43 KB
Newer Older
Rod Vagg's avatar
Rod Vagg committed
1 2 3 4 5 6 7 8 9 10 11 12
package dagpb

// Code generated by go-ipld-prime gengo.  DO NOT EDIT.

import (
	"fmt"

	"github.com/ipld/go-ipld-prime"
	"github.com/ipld/go-ipld-prime/schema"
)

const (
Rod Vagg's avatar
Rod Vagg committed
13
	midvalue = schema.Maybe(4)
Rod Vagg's avatar
Rod Vagg committed
14 15 16 17 18 19
	allowNull = schema.Maybe(5)
)

type maState uint8

const (
Rod Vagg's avatar
Rod Vagg committed
20
	maState_initial     maState = iota
Rod Vagg's avatar
Rod Vagg committed
21 22 23 24 25 26 27 28 29
	maState_midKey
	maState_expectValue
	maState_midValue
	maState_finished
)

type laState uint8

const (
Rod Vagg's avatar
Rod Vagg committed
30
	laState_initial  laState = iota
Rod Vagg's avatar
Rod Vagg committed
31 32 33 34 35 36 37
	laState_midValue
	laState_finished
)
type _ErrorThunkAssembler struct {
	e error
}

Rod Vagg's avatar
Rod Vagg committed
38
func (ea _ErrorThunkAssembler) BeginMap(_ int) (ipld.MapAssembler, error) { return nil, ea.e }
Rod Vagg's avatar
Rod Vagg committed
39
func (ea _ErrorThunkAssembler) BeginList(_ int) (ipld.ListAssembler, error) { return nil, ea.e }
Rod Vagg's avatar
Rod Vagg committed
40 41 42 43 44 45 46 47
func (ea _ErrorThunkAssembler) AssignNull() error { return ea.e }
func (ea _ErrorThunkAssembler) AssignBool(bool) error { return ea.e }
func (ea _ErrorThunkAssembler) AssignInt(int) error { return ea.e }
func (ea _ErrorThunkAssembler) AssignFloat(float64) error { return ea.e }
func (ea _ErrorThunkAssembler) AssignString(string) error { return ea.e }
func (ea _ErrorThunkAssembler) AssignBytes([]byte) error { return ea.e }
func (ea _ErrorThunkAssembler) AssignLink(ipld.Link) error { return ea.e }
func (ea _ErrorThunkAssembler) AssignNode(ipld.Node) error { return ea.e }
Rod Vagg's avatar
Rod Vagg committed
48 49 50
func (ea _ErrorThunkAssembler) Prototype() ipld.NodePrototype {
	panic(fmt.Errorf("cannot get prototype from error-carrying assembler: already derailed with error: %w", ea.e))
}