persistence

package
v0.39.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: MIT Imports: 5 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 {
	Name        string                       `json:"name,omitempty"`
	Version     string                       `json:"version,omitempty"`
	Description string                       `json:"description,omitempty"`
	Authors     []Author                     `json:"authors,omitempty"`
	WebScene    *WebScene                    `json:"webScene,omitempty"`
	Producers   map[string]schema.Producer   `json:"producers"`
	Nodes       map[string]Node              `json:"nodes"`
	Metadata    map[string]any               `json:"metadata,omitempty"`
	Variables   schema.NestedGroup[Variable] `json:"variables,omitempty"`
	Profiles    map[string]Profile           `json:"profiles,omitempty"`
	SubGraphs   map[string]SubGraph          `json:"subGraphs,omitempty"`
}

type Author

type Author struct {
	Name        string          `json:"name"`
	ContactInfo []AuthorContact `json:"contactInfo,omitempty"`
}

type AuthorContact

type AuthorContact struct {
	Medium string `json:"medium"`
	Value  string `json:"value"`
}

type Node

type Node struct {
	Type          string                          `json:"type"`
	AssignedInput map[string]schema.PortReference `json:"assignedInput,omitempty"`
	Data          json.RawMessage                 `json:"data,omitempty"`
	Variable      *string                         `json:"variable,omitempty"`
}

type Profile

type Profile struct {
	Data map[string]json.RawMessage `json:"data,omitempty"`
}

type SubGraph

type SubGraph struct {
	Name        string          `json:"name"`
	Description string          `json:"description,omitempty"`
	Nodes       map[string]Node `json:"nodes"`
	Notes       map[string]any  `json:"notes,omitempty"`
	Metadata    map[string]any  `json:"metadata,omitempty"`
}

type Variable

type Variable struct {
	Description string          `json:"description"`
	Data        json.RawMessage `json:"data"`
}

type WebColor

type WebColor struct {
	R byte
	G byte
	B byte
	A byte
}

func (WebColor) MarshalJSON

func (c WebColor) MarshalJSON() ([]byte, error)

func (WebColor) RGBA

func (c WebColor) RGBA() (r, g, b, a uint32)

func (WebColor) RGBA8

func (c WebColor) RGBA8() color.RGBA

func (*WebColor) UnmarshalJSON

func (c *WebColor) UnmarshalJSON(data []byte) error

type WebScene

type WebScene struct {
	RenderWireframe bool        `json:"renderWireframe"`
	AntiAlias       bool        `json:"antiAlias"`
	XrEnabled       bool        `json:"xrEnabled"`
	Fog             WebSceneFog `json:"fog"`
	Background      WebColor    `json:"background"`
	Lighting        WebColor    `json:"lighting"`
	Ground          WebColor    `json:"ground"`
}

type WebSceneFog

type WebSceneFog struct {
	Color WebColor `json:"color"`
	Near  float32  `json:"near"`
	Far   float32  `json:"far"`
}

Jump to

Keyboard shortcuts

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