ui

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HTML

func HTML(page Page) (string, error)

func Render

func Render(w io.Writer, page Page) error

Types

type ClientConfig

type ClientConfig struct {
	DefaultLanguage string `json:"defaultLanguage"`
	DefaultTheme    string `json:"defaultTheme"`
	RefreshMS       int64  `json:"refreshMS"`
	APIPath         string `json:"apiPath"`
}

type Page

type Page struct {
	Title           string
	Description     string
	Footer          string
	DefaultTheme    string
	DefaultLanguage string
	Background      string
	Config          ClientConfig
	Status          any
}

Jump to

Keyboard shortcuts

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