Documentation
¶
Index ¶
- func BuildNodeTypeSchema(node nodes.Node) schema.NodeType
- func Nodes() *refutil.TypeFactory
- func WriteMermaid(a App, out io.Writer) error
- type App
- func (a *App) ApplyGraph(jsonPayload []byte) error
- func (a App) Generate(outputPath string) error
- func (a *App) GetParameter(nodeId string) Parameter
- func (a *App) Graph() []byte
- func (a *App) Run() error
- func (a *App) Schema() schema.App
- func (a *App) SetupProducers()
- func (a App) SwaggerSpec() swagger.Spec
- func (a App) WriteSwagger(out io.Writer) error
- func (a App) WriteZip(out io.Writer) error
- type AppServer
- func (as *AppServer) ApplyMessage(key string, msg []byte) (bool, error)
- func (as *AppServer) AutosaveGraph()
- func (as *AppServer) MermaidEndpoint(w http.ResponseWriter, r *http.Request)
- func (as *AppServer) ProducerEndpoint(w http.ResponseWriter, r *http.Request)
- func (as *AppServer) SceneEndpoint(w http.ResponseWriter, r *http.Request)
- func (as *AppServer) SchemaEndpoint(w http.ResponseWriter, r *http.Request)
- func (as *AppServer) Serve() error
- func (as *AppServer) StartedEndpoint(w http.ResponseWriter, r *http.Request)
- func (as *AppServer) SwaggerEndpoint(w http.ResponseWriter, r *http.Request)
- func (as *AppServer) ZipEndpoint(w http.ResponseWriter, r *http.Request)
- type Author
- type AuthorContact
- type CustomGraphSerialization
- type Graph
- type GraphNodeInstance
- type NestedSyncMap
- type NodeBuilder
- type Parameter
- type SwaggerParameter
- type SyncMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildNodeTypeSchema ¶ added in v0.11.0
func Nodes ¶ added in v0.11.0
func Nodes() *refutil.TypeFactory
Types ¶
type App ¶ added in v0.9.0
type App struct {
Name string
Version string
Description string
WebScene *room.WebScene
Authors []Author
Producers map[string]nodes.NodeOutput[artifact.Artifact]
// contains filtered or unexported fields
}
func (*App) ApplyGraph ¶ added in v0.11.0
func (*App) GetParameter ¶ added in v0.20.0
func (*App) SetupProducers ¶ added in v0.11.0
func (a *App) SetupProducers()
func (App) SwaggerSpec ¶ added in v0.13.0
type AppServer ¶ added in v0.10.0
type AppServer struct {
// contains filtered or unexported fields
}
func (*AppServer) ApplyMessage ¶ added in v0.11.0
func (*AppServer) AutosaveGraph ¶ added in v0.20.0
func (as *AppServer) AutosaveGraph()
func (*AppServer) MermaidEndpoint ¶ added in v0.10.0
func (as *AppServer) MermaidEndpoint(w http.ResponseWriter, r *http.Request)
func (*AppServer) ProducerEndpoint ¶ added in v0.10.0
func (as *AppServer) ProducerEndpoint(w http.ResponseWriter, r *http.Request)
func (*AppServer) SceneEndpoint ¶ added in v0.10.0
func (as *AppServer) SceneEndpoint(w http.ResponseWriter, r *http.Request)
func (*AppServer) SchemaEndpoint ¶ added in v0.10.0
func (as *AppServer) SchemaEndpoint(w http.ResponseWriter, r *http.Request)
func (*AppServer) StartedEndpoint ¶ added in v0.10.0
func (as *AppServer) StartedEndpoint(w http.ResponseWriter, r *http.Request)
func (*AppServer) SwaggerEndpoint ¶ added in v0.13.0
func (as *AppServer) SwaggerEndpoint(w http.ResponseWriter, r *http.Request)
func (*AppServer) ZipEndpoint ¶ added in v0.10.0
func (as *AppServer) ZipEndpoint(w http.ResponseWriter, r *http.Request)
type Author ¶ added in v0.9.0
type Author struct {
Name string
ContactInfo []AuthorContact
}
type AuthorContact ¶ added in v0.9.0
type CustomGraphSerialization ¶ added in v0.11.0
type Graph ¶ added in v0.11.0
type Graph struct {
Name string `json:"name,omitempty"`
Version string `json:"version,omitempty"`
Description string `json:"description,omitempty"`
WebScene *room.WebScene `json:"webScene"`
Producers map[string]schema.Producer `json:"producers"`
Nodes map[string]GraphNodeInstance `json:"nodes"`
Metadata map[string]any `json:"metadata,omitempty"`
}
type GraphNodeInstance ¶ added in v0.11.0
type GraphNodeInstance struct {
Type string `json:"type"`
Dependencies []schema.NodeDependency `json:"dependencies,omitempty"`
Data json.RawMessage `json:"data,omitempty"`
}
type NestedSyncMap ¶ added in v0.20.0
type NestedSyncMap struct {
// contains filtered or unexported fields
}
func NewNestedSyncMap ¶ added in v0.20.0
func NewNestedSyncMap() *NestedSyncMap
func (*NestedSyncMap) Get ¶ added in v0.20.0
func (sm *NestedSyncMap) Get(key string) any
func (*NestedSyncMap) OverwriteData ¶ added in v0.20.0
func (sm *NestedSyncMap) OverwriteData(data map[string]any)
func (*NestedSyncMap) Set ¶ added in v0.20.0
func (sm *NestedSyncMap) Set(key string, value any)
type NodeBuilder ¶ added in v0.11.0
type SwaggerParameter ¶ added in v0.13.0
type SyncMap ¶ added in v0.20.0
type SyncMap[Key comparable, Value any] struct { // contains filtered or unexported fields }
func NewSyncMap ¶ added in v0.20.0
func NewSyncMap[Key comparable, Value any]() *SyncMap[Key, Value]
Source Files
¶
Click to show internal directories.
Click to hide internal directories.