schema

package
v0.21.1 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 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 App

type App struct {
	Producers map[string]Producer     `json:"producers"`
	Nodes     map[string]NodeInstance `json:"nodes"`
	Types     []NodeType              `json:"types"`
	Notes     map[string]any          `json:"notes"`
}

type NodeDependency

type NodeDependency struct {
	DependencyID   string `json:"dependencyID"`
	DependencyPort string `json:"dependencyPort"`
	Name           string `json:"name"`
}

type NodeInput

type NodeInput struct {
	Type    string `json:"type"`
	IsArray bool   `json:"isArray"`
}

type NodeInstance

type NodeInstance struct {
	Type         string           `json:"type"`
	Name         string           `json:"name"`
	Version      int              `json:"version"`
	Dependencies []NodeDependency `json:"dependencies"`
	Parameter    Parameter        `json:"parameter,omitempty"`

	Metadata map[string]any `json:"metadata,omitempty"`
}

type NodeOutput

type NodeOutput struct {
	Name string `json:"name"`
	Type string `json:"type"`
}

type NodeType

type NodeType struct {
	DisplayName string               `json:"displayName"`
	Info        string               `json:"info"`
	Type        string               `json:"type"`
	Path        string               `json:"path"`
	Outputs     []NodeOutput         `json:"outputs,omitempty"`
	Inputs      map[string]NodeInput `json:"inputs,omitempty"`
	Parameter   Parameter            `json:"parameter,omitempty"`
}

type Parameter

type Parameter interface {
	ValueType() string
	DisplayName() string
}

type ParameterBase

type ParameterBase struct {
	Name        string `json:"name"`
	Description string `json:"description"`
	Type        string `json:"type"`
}

func (ParameterBase) DisplayName

func (gps ParameterBase) DisplayName() string

func (ParameterBase) ValueType

func (gps ParameterBase) ValueType() string

type Producer

type Producer struct {
	NodeID string `json:"nodeID"`
	Port   string `json:"port"` // Name of node out port
}

Jump to

Keyboard shortcuts

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