template

package
v0.0.0-...-5c1de5d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NavbarRow(b model.Board) string

func PageTemplate

func PageTemplate(p Page) string

func PostBoxRow

func PostBoxRow(action string) string

func StreamNavbarRow

func StreamNavbarRow(qw422016 *qt422016.Writer, b model.Board)

func StreamPageTemplate

func StreamPageTemplate(qw422016 *qt422016.Writer, p Page)

func StreamPostBoxRow

func StreamPostBoxRow(qw422016 *qt422016.Writer, action string)

func WriteNavbarRow

func WriteNavbarRow(qq422016 qtio422016.Writer, b model.Board)

func WritePageTemplate

func WritePageTemplate(qq422016 qtio422016.Writer, p Page)

func WritePostBoxRow

func WritePostBoxRow(qq422016 qtio422016.Writer, action string)

Types

type BoardPage

type BoardPage struct {
	Board   model.Board
	Threads []model.Post
}

func (*BoardPage) Body

func (bp *BoardPage) Body() string

func (*BoardPage) StreamBody

func (bp *BoardPage) StreamBody(qw422016 *qt422016.Writer)

func (*BoardPage) WriteBody

func (bp *BoardPage) WriteBody(qq422016 qtio422016.Writer)

type GeneralError

type GeneralError struct {
	Message string
}

func (*GeneralError) Body

func (ge *GeneralError) Body() string

func (*GeneralError) StreamBody

func (ge *GeneralError) StreamBody(qw422016 *qt422016.Writer)

func (*GeneralError) WriteBody

func (ge *GeneralError) WriteBody(qq422016 qtio422016.Writer)

type IndexPage

type IndexPage struct {
	Boards []model.Board
}

func (*IndexPage) Body

func (ip *IndexPage) Body() string

func (*IndexPage) StreamBody

func (ip *IndexPage) StreamBody(qw422016 *qt422016.Writer)

func (*IndexPage) WriteBody

func (ip *IndexPage) WriteBody(qq422016 qtio422016.Writer)

type InternalErrorPage

type InternalErrorPage struct {
	Backtrace interface{}
}

func (*InternalErrorPage) Body

func (ep *InternalErrorPage) Body() string

func (*InternalErrorPage) StreamBody

func (ep *InternalErrorPage) StreamBody(qw422016 *qt422016.Writer)

func (*InternalErrorPage) WriteBody

func (ep *InternalErrorPage) WriteBody(qq422016 qtio422016.Writer)

type NotFoundPage

type NotFoundPage struct{}

func (*NotFoundPage) Body

func (ep *NotFoundPage) Body() string

func (*NotFoundPage) StreamBody

func (ep *NotFoundPage) StreamBody(qw422016 *qt422016.Writer)

func (*NotFoundPage) WriteBody

func (ep *NotFoundPage) WriteBody(qq422016 qtio422016.Writer)

type Page

type Page interface {
	//line template/layout_base.qtpl:6
	Body() string
	//line template/layout_base.qtpl:6
	StreamBody(qw422016 *qt422016.Writer)
	//line template/layout_base.qtpl:6
	WriteBody(qq422016 qtio422016.Writer)
}

type ThreadPage

type ThreadPage struct {
	Board model.Board
	Posts []model.Post
}

func (*ThreadPage) Body

func (tp *ThreadPage) Body() string

func (*ThreadPage) StreamBody

func (tp *ThreadPage) StreamBody(qw422016 *qt422016.Writer)

func (*ThreadPage) WriteBody

func (tp *ThreadPage) WriteBody(qq422016 qtio422016.Writer)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL