nodeworkshop

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: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrCannotBeNull

type ErrCannotBeNull struct{} // arguably either ErrInvalidKindForNodeStyle or ErrValidationFailed.

type ErrInvalidKindForKindedUnion

type ErrInvalidKindForKindedUnion struct{}

type ErrInvalidKindForNodeStyle

type ErrInvalidKindForNodeStyle struct{}

type ErrInvalidStructKey

type ErrInvalidStructKey struct{}

type ErrInvalidUnionDiscriminant

type ErrInvalidUnionDiscriminant struct{} // could break this down further into like three different kinds of error (missing descrim key, missing content key, wrong descrim) and/or merge with above.

type ErrListOverrun

type ErrListOverrun struct{} // only really possible with struct types with list reprs, so... again, categorization questions.

type ErrMissingRequiredField

type ErrMissingRequiredField struct{} // definitely valid to fit inside ErrValidationFailed.

type ErrRepeatedMapKey

type ErrRepeatedMapKey struct{}

type ErrValidationFailed

type ErrValidationFailed struct {
	// contains filtered or unexported fields

} // almost all typed errors go in here.  even ErrInvalidStructKey, possibly?  not sure on bind.Node with atlas miss.

type Node

type Node interface {
}

type NodeAssembler

type NodeAssembler interface {
}

type NodeBuilder

type NodeBuilder interface {
}

type NodeWorkshop

type NodeWorkshop struct {
	Err     error       // used to return errors
	OnError func(error) // error will always be stored in `nw.Err`, but this also allows to react instantly (or, cancel it by nilling it).

}

Jump to

Keyboard shortcuts

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