Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AbstractPage ¶
type AbstractPage struct {
Expr ast.Expr
TypeName string
Methods []*Handler
EventHandlers []*EventHandler
Embeds []*AbstractPage
}
type App ¶
type App struct {
Fset *token.FileSet
PkgPath string
Expr ast.Expr
PageIndex *Page
PageError404 *Page
PageError500 *Page
Recover500 ast.Expr // Nullable.
GlobalHeadGenerator ast.Expr // Nullable.
Session *SessionType // Nullable.
Pages []*Page
Events []*Event
Actions []*Handler // App-level POST/PUT/DELETE actions.
}
type EventHandler ¶
type Handler ¶
type Handler struct {
Expr ast.Expr
Name string
HTTPMethod string
Route string
InputRequest *Input
InputSSE *Input
InputSessionToken *Input
InputSession *Input
InputPath *Input
InputQuery *Input
InputSignals *Input
InputDispatch *InputDispatch
OutputBody *TemplComponent // templ.Component body (actions only)
OutputRedirect *Output
OutputRedirectStatus *Output
OutputNewSession *Output
OutputCloseSession *Output
OutputEnableBgStream *Output
OutputDisableRefresh *Output
OutputErr *Output
}
type HandlerGET ¶
type HandlerGET struct {
*Handler
OutputBody *TemplComponent
OutputHead *TemplComponent
}
type InputDispatch ¶
type Page ¶
type Page struct {
Expr ast.Expr
TypeName string
Route string
PageSpecialization PageSpecialization
GET *HandlerGET
Actions []*Handler
EventHandlers []*EventHandler
Embeds []*AbstractPage
}
type PageSpecialization ¶
type PageSpecialization int8
const ( PageTypeIndex PageSpecialization PageTypeError404 PageTypeError500 )
type SessionType ¶
type TemplComponent ¶
type TemplComponent struct {
*Output
}
Click to show internal directories.
Click to hide internal directories.