views

package
v0.0.0-...-784fe99 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2012 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PdfView

type PdfView struct {
	// contains filtered or unexported fields
}

func (*PdfView) Run

func (v *PdfView) Run(q Query) (err error)

func (*PdfView) Set

func (v *PdfView) Set(options *PdfViewOptions)

type PdfViewOptions

type PdfViewOptions struct {
	FontName   string
	FontSize   pdf.Unit
	Margin     pdf.Unit
	Padding    pdf.Unit
	PageWidth  pdf.Unit
	PageHeight pdf.Unit
}

type Query

type Query struct {
	View     View
	Start    days.Day
	Count    int
	Template string
	Out      io.Writer
}

func (*Query) LoadTemplate

func (q *Query) LoadTemplate(ifempty *template.Template) (t *template.Template, err error)

func (*Query) Range

func (q *Query) Range() []days.Day

type TextView

type TextView struct {
}

func (*TextView) Run

func (v *TextView) Run(q Query) (err error)

type View

type View interface {
	Run(Query) error
}

func Resolve

func Resolve(viewName string) View

Jump to

Keyboard shortcuts

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