Documentation
¶
Index ¶
- func PageTemplate(p Page) string
- func StreamPageTemplate(qw422016 *qt422016.Writer, p Page)
- func WritePageTemplate(qq422016 qtio422016.Writer, p Page)
- type BasePage
- func (p *BasePage) Body() string
- func (p *BasePage) Head() string
- func (p *BasePage) StreamBody(qw422016 *qt422016.Writer)
- func (p *BasePage) StreamHead(qw422016 *qt422016.Writer)
- func (p *BasePage) StreamTitle(qw422016 *qt422016.Writer)
- func (p *BasePage) Title() string
- func (p *BasePage) WriteBody(qq422016 qtio422016.Writer)
- func (p *BasePage) WriteHead(qq422016 qtio422016.Writer)
- func (p *BasePage) WriteTitle(qq422016 qtio422016.Writer)
- type ErrorPage
- func (p *ErrorPage) Body() string
- func (p *ErrorPage) Head() string
- func (p *ErrorPage) StreamBody(qw422016 *qt422016.Writer)
- func (p *ErrorPage) StreamHead(qw422016 *qt422016.Writer)
- func (p *ErrorPage) StreamTitle(qw422016 *qt422016.Writer)
- func (p *ErrorPage) Title() string
- func (p *ErrorPage) WriteBody(qq422016 qtio422016.Writer)
- func (p *ErrorPage) WriteHead(qq422016 qtio422016.Writer)
- func (p *ErrorPage) WriteTitle(qq422016 qtio422016.Writer)
- type MainPage
- func (p *MainPage) Body() string
- func (p *MainPage) Head() string
- func (p *MainPage) StreamBody(qw422016 *qt422016.Writer)
- func (p *MainPage) StreamHead(qw422016 *qt422016.Writer)
- func (p *MainPage) StreamTitle(qw422016 *qt422016.Writer)
- func (p *MainPage) Title() string
- func (p *MainPage) WriteBody(qq422016 qtio422016.Writer)
- func (p *MainPage) WriteHead(qq422016 qtio422016.Writer)
- func (p *MainPage) WriteTitle(qq422016 qtio422016.Writer)
- type Page
- type PrivacyPolicyPage
- func (p *PrivacyPolicyPage) Body() string
- func (p *PrivacyPolicyPage) Head() string
- func (p *PrivacyPolicyPage) StreamBody(qw422016 *qt422016.Writer)
- func (p *PrivacyPolicyPage) StreamHead(qw422016 *qt422016.Writer)
- func (p *PrivacyPolicyPage) StreamTitle(qw422016 *qt422016.Writer)
- func (p *PrivacyPolicyPage) Title() string
- func (p *PrivacyPolicyPage) WriteBody(qq422016 qtio422016.Writer)
- func (p *PrivacyPolicyPage) WriteHead(qq422016 qtio422016.Writer)
- func (p *PrivacyPolicyPage) WriteTitle(qq422016 qtio422016.Writer)
- type StatsPage
- func (p *StatsPage) Body() string
- func (p *StatsPage) Head() string
- func (p *StatsPage) StreamBody(qw422016 *qt422016.Writer)
- func (p *StatsPage) StreamHead(qw422016 *qt422016.Writer)
- func (p *StatsPage) StreamTitle(qw422016 *qt422016.Writer)
- func (p *StatsPage) Title() string
- func (p *StatsPage) WriteBody(qq422016 qtio422016.Writer)
- func (p *StatsPage) WriteHead(qq422016 qtio422016.Writer)
- func (p *StatsPage) 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) StreamHead ¶
func (*BasePage) StreamTitle ¶
func (*BasePage) WriteBody ¶
func (p *BasePage) WriteBody(qq422016 qtio422016.Writer)
func (*BasePage) WriteHead ¶
func (p *BasePage) WriteHead(qq422016 qtio422016.Writer)
func (*BasePage) WriteTitle ¶
func (p *BasePage) WriteTitle(qq422016 qtio422016.Writer)
type ErrorPage ¶
func (*ErrorPage) StreamBody ¶
func (*ErrorPage) StreamHead ¶
func (*ErrorPage) StreamTitle ¶
func (*ErrorPage) WriteBody ¶
func (p *ErrorPage) WriteBody(qq422016 qtio422016.Writer)
func (*ErrorPage) WriteHead ¶
func (p *ErrorPage) WriteHead(qq422016 qtio422016.Writer)
func (*ErrorPage) WriteTitle ¶
func (p *ErrorPage) WriteTitle(qq422016 qtio422016.Writer)
type MainPage ¶
type MainPage struct {
LastSeen string
TimeDifference string
MissingBeat string
TotalBeats string
CurrentTime string
GitHash string
GitRepo string
ServerName string
}
func (*MainPage) StreamBody ¶
func (*MainPage) StreamHead ¶
func (*MainPage) StreamTitle ¶
func (*MainPage) WriteBody ¶
func (p *MainPage) WriteBody(qq422016 qtio422016.Writer)
func (*MainPage) WriteHead ¶
func (p *MainPage) WriteHead(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)
Head() string
StreamHead(qw422016 *qt422016.Writer)
WriteHead(qq422016 qtio422016.Writer)
Body() string
StreamBody(qw422016 *qt422016.Writer)
WriteBody(qq422016 qtio422016.Writer)
}
type PrivacyPolicyPage ¶
type PrivacyPolicyPage struct {
ServerName string
}
func (*PrivacyPolicyPage) Body ¶
func (p *PrivacyPolicyPage) Body() string
func (*PrivacyPolicyPage) Head ¶
func (p *PrivacyPolicyPage) Head() string
func (*PrivacyPolicyPage) StreamBody ¶
func (p *PrivacyPolicyPage) StreamBody(qw422016 *qt422016.Writer)
func (*PrivacyPolicyPage) StreamHead ¶
func (p *PrivacyPolicyPage) StreamHead(qw422016 *qt422016.Writer)
func (*PrivacyPolicyPage) StreamTitle ¶
func (p *PrivacyPolicyPage) StreamTitle(qw422016 *qt422016.Writer)
func (*PrivacyPolicyPage) Title ¶
func (p *PrivacyPolicyPage) Title() string
func (*PrivacyPolicyPage) WriteBody ¶
func (p *PrivacyPolicyPage) WriteBody(qq422016 qtio422016.Writer)
func (*PrivacyPolicyPage) WriteHead ¶
func (p *PrivacyPolicyPage) WriteHead(qq422016 qtio422016.Writer)
func (*PrivacyPolicyPage) WriteTitle ¶
func (p *PrivacyPolicyPage) WriteTitle(qq422016 qtio422016.Writer)
type StatsPage ¶
type StatsPage struct {
TotalBeats string
TotalDevices string
TotalVisits string
TotalUptime string
ServerName string
}
func (*StatsPage) StreamBody ¶
func (*StatsPage) StreamHead ¶
func (*StatsPage) StreamTitle ¶
func (*StatsPage) WriteBody ¶
func (p *StatsPage) WriteBody(qq422016 qtio422016.Writer)
func (*StatsPage) WriteHead ¶
func (p *StatsPage) WriteHead(qq422016 qtio422016.Writer)
func (*StatsPage) WriteTitle ¶
func (p *StatsPage) WriteTitle(qq422016 qtio422016.Writer)
Click to show internal directories.
Click to hide internal directories.