webapp

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(publicURL string, resolve MetadataResolver) (http.Handler, bool, error)

Handler returns the production frontend handler when a Vite build is embedded. Development uses Vite directly, so a source-only build has no frontend handler.

Types

type MetadataResolver

type MetadataResolver func(*http.Request) (PageMetadata, bool)

MetadataResolver identifies public routes that are safe to describe before the browser has authenticated. Returning false leaves the generic app shell in place.

type PageMetadata

type PageMetadata struct {
	Title       string
	Description string
}

PageMetadata describes the HTML metadata for a public browser route.

Jump to

Keyboard shortcuts

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