app

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadAssetManifest

func LoadAssetManifest(root fs.FS) asset.Manifest

LoadAssetManifest reads gowdk-assets.json from generated static output.

Types

type Handler

type Handler struct {
	Root       fs.FS
	Identity   Identity
	Assets     asset.Manifest
	Action     HandlerFunc
	SSRExact   HandlerFunc
	SSRDynamic HandlerFunc
}

Handler serves embedded generated output plus optional action and SSR hooks.

func (Handler) ServeHTTP

func (handler Handler) ServeHTTP(response http.ResponseWriter, request *http.Request)

type HandlerFunc

type HandlerFunc func(http.ResponseWriter, *http.Request) bool

HandlerFunc handles a generated request-time route and reports whether it wrote a response.

type Identity

type Identity struct {
	AppID      string
	ModuleName string
	InstanceID string
}

Identity describes one running generated app instance.

func InstanceIdentity

func InstanceIdentity() Identity

InstanceIdentity reads GOWDK identity settings from the environment.

Jump to

Keyboard shortcuts

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