classes

package
v0.0.0-...-1b97063 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InputRequired = InputKind(iota)
	InputOptional
	InputHidden
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Class

type Class struct {
	Name     types.NodeClass
	Title    string
	Desc     string
	Category string
	IsOutput bool
	Inputs   []Input
	Outputs  []Output
}

type Classes

type Classes map[types.NodeClass]*Class

func Decode

func Decode(r io.Reader) (Classes, error)

type Input

type Input struct {
	Name     string
	Kind     InputKind
	Type     types.TypeName
	Config   json.RawMessage
	IsSelect bool
	Select   []Option
}

type InputKind

type InputKind int

func (InputKind) String

func (k InputKind) String() string

type Option

type Option struct {
	Name   string
	Inputs []Input
}

type Output

type Output struct {
	Name   string
	Type   types.TypeName
	OneOf  []types.TypeName
	IsList bool
}

Jump to

Keyboard shortcuts

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