Documentation ¶
Index ¶
- 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) Graph() []byte
- func (a *App) Run() error
- func (a *App) Schema() AppSchema
- 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 AppSchema
- type AppServer
- func (as *AppServer) ApplyMessage(key string, msg []byte) (bool, error)
- func (as *AppServer) GraphEndpoint(w http.ResponseWriter, r *http.Request)
- func (as *AppServer) MermaidEndpoint(w http.ResponseWriter, r *http.Request)
- func (as *AppServer) NodeConnectionEndpoint(w http.ResponseWriter, r *http.Request)
- func (as *AppServer) NodeEndpoint(w http.ResponseWriter, r *http.Request)
- func (as *AppServer) ProducerEndpoint(w http.ResponseWriter, r *http.Request)
- func (as *AppServer) ProfileEndpoint(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 Artifact
- type Author
- type AuthorContact
- type CreateNodeConnectionRequest
- type CreateNodeConnectionResponse
- type CreateNodeRequest
- type CreateNodeResponse
- type CustomGraphSerialization
- type DeleteNodeConnectionRequest
- type DeleteNodeConnectionResponse
- type DeleteNodeRequest
- type Graph
- type GraphNodeInstance
- type NodeBuilder
- type NodeDependencySchema
- type NodeInput
- type NodeInstanceSchema
- type NodeOutput
- type NodeTypeSchema
- type Parameter
- type ParameterSchema
- type ParameterSchemaBase
- type PolyformArtifact
- type ProducerSchema
- type SwaggerParameter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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] // contains filtered or unexported fields }
func (*App) ApplyGraph ¶ added in v0.11.0
func (*App) SetupProducers ¶ added in v0.11.0
func (a *App) SetupProducers()
func (App) SwaggerSpec ¶ added in v0.13.0
type AppSchema ¶ added in v0.10.0
type AppSchema struct { Producers map[string]ProducerSchema `json:"producers"` Nodes map[string]NodeInstanceSchema `json:"nodes"` Types []NodeTypeSchema `json:"types"` }
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) GraphEndpoint ¶ added in v0.11.0
func (as *AppServer) GraphEndpoint(w http.ResponseWriter, r *http.Request)
func (*AppServer) MermaidEndpoint ¶ added in v0.10.0
func (as *AppServer) MermaidEndpoint(w http.ResponseWriter, r *http.Request)
func (*AppServer) NodeConnectionEndpoint ¶ added in v0.11.0
func (as *AppServer) NodeConnectionEndpoint(w http.ResponseWriter, r *http.Request)
func (*AppServer) NodeEndpoint ¶ added in v0.11.0
func (as *AppServer) NodeEndpoint(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) ProfileEndpoint ¶ added in v0.10.0
func (as *AppServer) ProfileEndpoint(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 CreateNodeConnectionRequest ¶ added in v0.11.0
type CreateNodeConnectionResponse ¶ added in v0.11.0
type CreateNodeConnectionResponse struct { }
type CreateNodeRequest ¶ added in v0.11.0
type CreateNodeRequest struct {
NodeType string `json:"nodeType"`
}
type CreateNodeResponse ¶ added in v0.11.0
type CreateNodeResponse struct { NodeID string `json:"nodeID"` Data NodeInstanceSchema `json:"data"` }
type CustomGraphSerialization ¶ added in v0.11.0
type DeleteNodeConnectionRequest ¶ added in v0.11.0
type DeleteNodeConnectionResponse ¶ added in v0.11.0
type DeleteNodeConnectionResponse struct { }
type DeleteNodeRequest ¶ added in v0.11.0
type DeleteNodeRequest struct {
NodeID string `json:"nodeID"`
}
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]ProducerSchema `json:"producers"` Nodes map[string]GraphNodeInstance `json:"nodes"` }
type GraphNodeInstance ¶ added in v0.11.0
type GraphNodeInstance struct { Type string `json:"type"` Dependencies []NodeDependencySchema `json:"dependencies,omitempty"` Data json.RawMessage `json:"data,omitempty"` }
type NodeBuilder ¶ added in v0.11.0
type NodeDependencySchema ¶ added in v0.10.0
type NodeInstanceSchema ¶ added in v0.11.0
type NodeInstanceSchema struct { Type string `json:"type"` Name string `json:"name"` Version int `json:"version"` Dependencies []NodeDependencySchema `json:"dependencies"` Parameter ParameterSchema `json:"parameter,omitempty"` // contains filtered or unexported fields }
type NodeOutput ¶ added in v0.10.0
type NodeTypeSchema ¶ added in v0.11.0
type NodeTypeSchema struct { DisplayName string `json:"displayName"` Type string `json:"type"` Path string `json:"path"` Outputs []NodeOutput `json:"outputs,omitempty"` Inputs map[string]NodeInput `json:"inputs,omitempty"` Parameter ParameterSchema `json:"parameter,omitempty"` }
func BuildNodeTypeSchema ¶ added in v0.11.0
func BuildNodeTypeSchema(node nodes.Node) NodeTypeSchema
type ParameterSchema ¶ added in v0.9.0
type ParameterSchemaBase ¶ added in v0.9.0
func (ParameterSchemaBase) DisplayName ¶ added in v0.9.0
func (gps ParameterSchemaBase) DisplayName() string
func (ParameterSchemaBase) ValueType ¶ added in v0.9.0
func (gps ParameterSchemaBase) ValueType() string
type PolyformArtifact ¶ added in v0.9.0
type ProducerSchema ¶ added in v0.11.0
type SwaggerParameter ¶ added in v0.13.0
Source Files ¶
- app.go
- app_cli.go
- app_init_notwasm.go
- app_schema.go
- app_server.go
- app_server_graph.go
- app_server_node.go
- app_server_node_connection.go
- app_server_profile.go
- app_swagger.go
- artifact.go
- author.go
- command.go
- custom_graph_serialization.go
- graph.go
- mermaid.go
- node_factory.go
- parameter.go
- parameter_schema.go
Click to show internal directories.
Click to hide internal directories.