Documentation ¶
Index ¶
- func PageTemplate(p Page) string
- func StreamPageTemplate(qw422016 *qt422016.Writer, p Page)
- func WritePageTemplate(qq422016 qtio422016.Writer, p Page)
- type BasePage
- type ErrorPage
- type MainPage
- type Page
- type TablePage
- func (p *TablePage) Body() string
- func (p *TablePage) StreamBody(qw422016 *qt422016.Writer)
- func (p *TablePage) StreamTitle(qw422016 *qt422016.Writer)
- func (p *TablePage) Title() string
- func (p *TablePage) WriteBody(qq422016 qtio422016.Writer)
- func (p *TablePage) WriteTitle(qq422016 qtio422016.Writer)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PageTemplate ¶
func StreamPageTemplate ¶
func WritePageTemplate ¶
func WritePageTemplate(qq422016 qtio422016.Writer, p Page)
Types ¶
type BasePage ¶
type BasePage struct{}
func (*BasePage) StreamBody ¶
func (*BasePage) StreamTitle ¶
func (*BasePage) WriteBody ¶
func (p *BasePage) WriteBody(qq422016 qtio422016.Writer)
func (*BasePage) WriteTitle ¶
func (p *BasePage) WriteTitle(qq422016 qtio422016.Writer)
type ErrorPage ¶
type ErrorPage struct { // inherit from base page, so its' title is used in error page. BasePage // error path Path []byte }
func (*ErrorPage) StreamBody ¶
func (*ErrorPage) WriteBody ¶
func (p *ErrorPage) WriteBody(qq422016 qtio422016.Writer)
type MainPage ¶
type MainPage struct {
CTX *fasthttp.RequestCtx
}
func (*MainPage) StreamBody ¶
func (*MainPage) StreamTitle ¶
func (*MainPage) WriteBody ¶
func (p *MainPage) WriteBody(qq422016 qtio422016.Writer)
func (*MainPage) WriteTitle ¶
func (p *MainPage) WriteTitle(qq422016 qtio422016.Writer)
type Page ¶
type Page interface { Title() string StreamTitle(qw422016 *qt422016.Writer) WriteTitle(qq422016 qtio422016.Writer) Body() string StreamBody(qw422016 *qt422016.Writer) WriteBody(qq422016 qtio422016.Writer) }
type TablePage ¶
type TablePage struct {
Rows []string
}
func (*TablePage) StreamBody ¶
func (*TablePage) StreamTitle ¶
func (*TablePage) WriteBody ¶
func (p *TablePage) WriteBody(qq422016 qtio422016.Writer)
func (*TablePage) WriteTitle ¶
func (p *TablePage) WriteTitle(qq422016 qtio422016.Writer)
Click to show internal directories.
Click to hide internal directories.