render

package
v0.0.0-edge.26.8371ed5 Latest Latest
Warning

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

Go to latest
Published: May 20, 2026 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(ctx context.Context, cfg Config) error

Build produces a self-contained static directory for a single dashboard. The output contains the React SPA with query results baked into index.html via a window.__DAC_STATIC__ payload.

Types

type Config

type Config struct {
	DashboardDir string
	Dashboard    string // dashboard name
	OutputDir    string
	Filters      map[string]any // filter overrides (merged over defaults)
	TemplateName string
	ConfigFile   string
	Environment  string
	Frontend     fs.FS // embedded frontend FS
}

Config holds the configuration for a static build.

Jump to

Keyboard shortcuts

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