Documentation
¶
Index ¶
- func PageTemplate(p Page) string
- func StreamPageTemplate(qw422016 *qt422016.Writer, p Page)
- func WritePageTemplate(qq422016 qtio422016.Writer, p Page)
- type AboutPage
- func (p *AboutPage) PageBody() string
- func (p *AboutPage) PageTitle() string
- func (p *AboutPage) StreamPageBody(qw422016 *qt422016.Writer)
- func (p *AboutPage) StreamPageTitle(qw422016 *qt422016.Writer)
- func (p *AboutPage) WritePageBody(qq422016 qtio422016.Writer)
- func (p *AboutPage) WritePageTitle(qq422016 qtio422016.Writer)
- type BasePage
- func (p *BasePage) PageBody() string
- func (p *BasePage) PageMeta() string
- func (p *BasePage) PageScripts() string
- func (p *BasePage) PageTitle() string
- func (p *BasePage) StreamPageBody(qw422016 *qt422016.Writer)
- func (p *BasePage) StreamPageMeta(qw422016 *qt422016.Writer)
- func (p *BasePage) StreamPageScripts(qw422016 *qt422016.Writer)
- func (p *BasePage) StreamPageTitle(qw422016 *qt422016.Writer)
- func (p *BasePage) WritePageBody(qq422016 qtio422016.Writer)
- func (p *BasePage) WritePageMeta(qq422016 qtio422016.Writer)
- func (p *BasePage) WritePageScripts(qq422016 qtio422016.Writer)
- func (p *BasePage) WritePageTitle(qq422016 qtio422016.Writer)
- type IndexPage
- func (p *IndexPage) Choice() string
- func (p *IndexPage) PageBody() string
- func (p *IndexPage) PageMeta() string
- func (p *IndexPage) PageScripts() string
- func (p *IndexPage) PageTitle() string
- func (p *IndexPage) StreamChoice(qw422016 *qt422016.Writer)
- func (p *IndexPage) StreamPageBody(qw422016 *qt422016.Writer)
- func (p *IndexPage) StreamPageMeta(qw422016 *qt422016.Writer)
- func (p *IndexPage) StreamPageScripts(qw422016 *qt422016.Writer)
- func (p *IndexPage) StreamPageTitle(qw422016 *qt422016.Writer)
- func (p *IndexPage) WriteChoice(qq422016 qtio422016.Writer)
- func (p *IndexPage) WritePageBody(qq422016 qtio422016.Writer)
- func (p *IndexPage) WritePageMeta(qq422016 qtio422016.Writer)
- func (p *IndexPage) WritePageScripts(qq422016 qtio422016.Writer)
- func (p *IndexPage) WritePageTitle(qq422016 qtio422016.Writer)
- type NotFoundPage
- func (p *NotFoundPage) PageBody() string
- func (p *NotFoundPage) PageTitle() string
- func (p *NotFoundPage) StreamPageBody(qw422016 *qt422016.Writer)
- func (p *NotFoundPage) StreamPageTitle(qw422016 *qt422016.Writer)
- func (p *NotFoundPage) WritePageBody(qq422016 qtio422016.Writer)
- func (p *NotFoundPage) WritePageTitle(qq422016 qtio422016.Writer)
- type Page
- type ResultRow
- type ResultView
- type ResultsPage
- func (p *ResultsPage) Chart(data []byte) string
- func (p *ResultsPage) PageBody() string
- func (p *ResultsPage) PageMeta() string
- func (p *ResultsPage) PageTitle() string
- func (p *ResultsPage) Result(result ResultView) string
- func (p *ResultsPage) StreamChart(qw422016 *qt422016.Writer, data []byte)
- func (p *ResultsPage) StreamPageBody(qw422016 *qt422016.Writer)
- func (p *ResultsPage) StreamPageMeta(qw422016 *qt422016.Writer)
- func (p *ResultsPage) StreamPageTitle(qw422016 *qt422016.Writer)
- func (p *ResultsPage) StreamResult(qw422016 *qt422016.Writer, result ResultView)
- func (p *ResultsPage) WriteChart(qq422016 qtio422016.Writer, data []byte)
- func (p *ResultsPage) WritePageBody(qq422016 qtio422016.Writer)
- func (p *ResultsPage) WritePageMeta(qq422016 qtio422016.Writer)
- func (p *ResultsPage) WritePageTitle(qq422016 qtio422016.Writer)
- func (p *ResultsPage) WriteResult(qq422016 qtio422016.Writer, result ResultView)
- type VotePage
- func (p *VotePage) PageBody() string
- func (p *VotePage) PageMeta() string
- func (p *VotePage) PageScripts() string
- func (p *VotePage) PageTitle() string
- func (p *VotePage) StreamPageBody(qw422016 *qt422016.Writer)
- func (p *VotePage) StreamPageMeta(qw422016 *qt422016.Writer)
- func (p *VotePage) StreamPageScripts(qw422016 *qt422016.Writer)
- func (p *VotePage) StreamPageTitle(qw422016 *qt422016.Writer)
- func (p *VotePage) WritePageBody(qq422016 qtio422016.Writer)
- func (p *VotePage) WritePageMeta(qq422016 qtio422016.Writer)
- func (p *VotePage) WritePageScripts(qq422016 qtio422016.Writer)
- func (p *VotePage) WritePageTitle(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 AboutPage ¶
type AboutPage struct {
BasePage
}
func (*AboutPage) StreamPageBody ¶
func (*AboutPage) StreamPageTitle ¶
func (*AboutPage) WritePageBody ¶
func (p *AboutPage) WritePageBody(qq422016 qtio422016.Writer)
func (*AboutPage) WritePageTitle ¶
func (p *AboutPage) WritePageTitle(qq422016 qtio422016.Writer)
type BasePage ¶
type BasePage struct{}
func (*BasePage) PageScripts ¶
func (*BasePage) StreamPageBody ¶
func (*BasePage) StreamPageMeta ¶
func (*BasePage) StreamPageScripts ¶
func (*BasePage) StreamPageTitle ¶
func (*BasePage) WritePageBody ¶
func (p *BasePage) WritePageBody(qq422016 qtio422016.Writer)
func (*BasePage) WritePageMeta ¶
func (p *BasePage) WritePageMeta(qq422016 qtio422016.Writer)
func (*BasePage) WritePageScripts ¶
func (p *BasePage) WritePageScripts(qq422016 qtio422016.Writer)
func (*BasePage) WritePageTitle ¶
func (p *BasePage) WritePageTitle(qq422016 qtio422016.Writer)
type IndexPage ¶
func (*IndexPage) PageScripts ¶
func (*IndexPage) StreamChoice ¶
func (*IndexPage) StreamPageBody ¶
func (*IndexPage) StreamPageMeta ¶
func (*IndexPage) StreamPageScripts ¶
func (*IndexPage) StreamPageTitle ¶
func (*IndexPage) WriteChoice ¶
func (p *IndexPage) WriteChoice(qq422016 qtio422016.Writer)
func (*IndexPage) WritePageBody ¶
func (p *IndexPage) WritePageBody(qq422016 qtio422016.Writer)
func (*IndexPage) WritePageMeta ¶
func (p *IndexPage) WritePageMeta(qq422016 qtio422016.Writer)
func (*IndexPage) WritePageScripts ¶
func (p *IndexPage) WritePageScripts(qq422016 qtio422016.Writer)
func (*IndexPage) WritePageTitle ¶
func (p *IndexPage) WritePageTitle(qq422016 qtio422016.Writer)
type NotFoundPage ¶
type NotFoundPage struct {
BasePage
}
func (*NotFoundPage) PageBody ¶
func (p *NotFoundPage) PageBody() string
func (*NotFoundPage) PageTitle ¶
func (p *NotFoundPage) PageTitle() string
func (*NotFoundPage) StreamPageBody ¶
func (p *NotFoundPage) StreamPageBody(qw422016 *qt422016.Writer)
func (*NotFoundPage) StreamPageTitle ¶
func (p *NotFoundPage) StreamPageTitle(qw422016 *qt422016.Writer)
func (*NotFoundPage) WritePageBody ¶
func (p *NotFoundPage) WritePageBody(qq422016 qtio422016.Writer)
func (*NotFoundPage) WritePageTitle ¶
func (p *NotFoundPage) WritePageTitle(qq422016 qtio422016.Writer)
type Page ¶
type Page interface { PageTitle() string StreamPageTitle(qw422016 *qt422016.Writer) WritePageTitle(qq422016 qtio422016.Writer) PageBody() string StreamPageBody(qw422016 *qt422016.Writer) WritePageBody(qq422016 qtio422016.Writer) PageMeta() string StreamPageMeta(qw422016 *qt422016.Writer) WritePageMeta(qq422016 qtio422016.Writer) PageScripts() string StreamPageScripts(qw422016 *qt422016.Writer) WritePageScripts(qq422016 qtio422016.Writer) }
type ResultView ¶
type ResultsPage ¶
type ResultsPage struct { BasePage Question string Choices []string IRV ResultView IRVRounds []ResultView FPTP ResultView // contains filtered or unexported fields }
func (*ResultsPage) Chart ¶
func (p *ResultsPage) Chart(data []byte) string
func (*ResultsPage) PageBody ¶
func (p *ResultsPage) PageBody() string
func (*ResultsPage) PageMeta ¶
func (p *ResultsPage) PageMeta() string
func (*ResultsPage) PageTitle ¶
func (p *ResultsPage) PageTitle() string
func (*ResultsPage) Result ¶
func (p *ResultsPage) Result(result ResultView) string
func (*ResultsPage) StreamChart ¶
func (p *ResultsPage) StreamChart(qw422016 *qt422016.Writer, data []byte)
func (*ResultsPage) StreamPageBody ¶
func (p *ResultsPage) StreamPageBody(qw422016 *qt422016.Writer)
func (*ResultsPage) StreamPageMeta ¶
func (p *ResultsPage) StreamPageMeta(qw422016 *qt422016.Writer)
func (*ResultsPage) StreamPageTitle ¶
func (p *ResultsPage) StreamPageTitle(qw422016 *qt422016.Writer)
func (*ResultsPage) StreamResult ¶
func (p *ResultsPage) StreamResult(qw422016 *qt422016.Writer, result ResultView)
func (*ResultsPage) WriteChart ¶
func (p *ResultsPage) WriteChart(qq422016 qtio422016.Writer, data []byte)
func (*ResultsPage) WritePageBody ¶
func (p *ResultsPage) WritePageBody(qq422016 qtio422016.Writer)
func (*ResultsPage) WritePageMeta ¶
func (p *ResultsPage) WritePageMeta(qq422016 qtio422016.Writer)
func (*ResultsPage) WritePageTitle ¶
func (p *ResultsPage) WritePageTitle(qq422016 qtio422016.Writer)
func (*ResultsPage) WriteResult ¶
func (p *ResultsPage) WriteResult(qq422016 qtio422016.Writer, result ResultView)
type VotePage ¶
func (*VotePage) PageScripts ¶
func (*VotePage) StreamPageBody ¶
func (*VotePage) StreamPageMeta ¶
func (*VotePage) StreamPageScripts ¶
func (*VotePage) StreamPageTitle ¶
func (*VotePage) WritePageBody ¶
func (p *VotePage) WritePageBody(qq422016 qtio422016.Writer)
func (*VotePage) WritePageMeta ¶
func (p *VotePage) WritePageMeta(qq422016 qtio422016.Writer)
func (*VotePage) WritePageScripts ¶
func (p *VotePage) WritePageScripts(qq422016 qtio422016.Writer)
func (*VotePage) WritePageTitle ¶
func (p *VotePage) WritePageTitle(qq422016 qtio422016.Writer)
Click to show internal directories.
Click to hide internal directories.