Documentation
¶
Overview ¶
Package appgen emits a generated Go app that embeds static build output.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildBinary ¶
BuildBinary compiles the generated app into binaryPath.
Types ¶
type ActionFragment ¶
ActionFragment describes a generated partial response fragment.
type ActionRoute ¶
type ActionRoute struct {
PageID string
ActionName string
Route string
InputName string
InputType string
InputFields []string
RequiredFields []string
ValidatesInput bool
Redirect string
Fragments []ActionFragment
}
ActionRoute describes a generated static action handler.
func ActionRoutes ¶
func ActionRoutes(app manifest.Manifest) ([]ActionRoute, error)
ActionRoutes extracts generated action routes from a parsed manifest.
type Options ¶
type Options struct {
Actions []ActionRoute
SSR []SSRRoute
}
Options configures generated app output.
type Result ¶
type Result struct {
AppDir string
MainPath string
PackagePath string
ModulePath string
StaticDir string
Files []string
BinaryPath string
}
Result describes generated app artifacts.
type SSRReplacement ¶
SSRReplacement maps a generated placeholder back to a request route param.
Click to show internal directories.
Click to hide internal directories.