renderer

package
v0.0.0-...-fdcb3e2 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Facts

type Facts struct {
	State string
	Data  map[string]any
}

type Renderer

type Renderer interface {
	// Render takes the persistent render configuration snapshot and the current task state
	// (data, status, etc.) to produce the final frontend view.
	Render(ctx context.Context, config json.RawMessage, facts Facts) (json.RawMessage, error)
}

Renderer is the domain-driven engine that generates the UI view from task state and config. The returned bytes are passed through verbatim to the frontend; the core makes no assumptions about the view shape. See demo/SimpleRenderer for one convention (slot → component).

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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