Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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.
type HandlerFunc ¶
type HandlerFunc func(http.ResponseWriter, *http.Request) bool
HandlerFunc handles a generated request-time route and reports whether it wrote a response.
Click to show internal directories.
Click to hide internal directories.