mocks

package
v0.0.0-...-54be6e2 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2015 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

type Block struct {
	mock.Mock
}

func (*Block) Load

func (_m *Block) Load(t templates.Template, block_data map[string]interface{}, user_input map[string]interface{})

func (*Block) Parse

func (_m *Block) Parse(doc documents.Document)

type Document

type Document struct {
	mock.Mock
}

func (*Document) AddFont

func (_m *Document) AddFont(familyStr string, styleStr string, fileStr string)

func (*Document) AddPage

func (_m *Document) AddPage()

func (*Document) CellFormat

func (_m *Document) CellFormat(w float64, h float64, txtStr string, borderStr string, ln int, alignStr string, fill bool, link int, linkStr string)

func (*Document) Error

func (_m *Document) Error() error

func (*Document) GetConversionRatio

func (_m *Document) GetConversionRatio() float64

func (*Document) GetFillColor

func (_m *Document) GetFillColor() (int, int, int)

func (*Document) GetImageInfo

func (_m *Document) GetImageInfo(imageStr string) *gofpdf.ImageInfoType

func (*Document) GetMargins

func (_m *Document) GetMargins() (float64, float64, float64, float64)

func (*Document) GetPageSize

func (_m *Document) GetPageSize() (float64, float64)

func (*Document) GetStringWidth

func (_m *Document) GetStringWidth(s string) float64

func (*Document) GetXY

func (_m *Document) GetXY() (float64, float64)

func (*Document) GetY

func (_m *Document) GetY() float64

func (*Document) HTMLBasicNew

func (_m *Document) HTMLBasicNew() gofpdf.HTMLBasicType

func (*Document) Image

func (_m *Document) Image(imageNameStr string, x float64, y float64, w float64, h float64, flow bool, tp string, link int, linkStr string)

func (*Document) ImageTypeFromMime

func (_m *Document) ImageTypeFromMime(mimeStr string) string

func (*Document) Line

func (_m *Document) Line(x1 float64, y1 float64, x2 float64, y2 float64)

func (*Document) LineTo

func (_m *Document) LineTo(x float64, y float64)

func (*Document) MultiCell

func (_m *Document) MultiCell(w float64, h float64, txtStr string, borderStr string, alignStr string, fill bool)

func (*Document) PointConvert

func (_m *Document) PointConvert(pt float64) float64

func (*Document) Rect

func (_m *Document) Rect(x float64, y float64, w float64, h float64, styleStr string)

func (*Document) RegisterImageReader

func (_m *Document) RegisterImageReader(imgName string, tp string, r io.Reader) *gofpdf.ImageInfoType

func (*Document) SetAutoPageBreak

func (_m *Document) SetAutoPageBreak(auto bool, margin float64)

func (*Document) SetCellMargin

func (_m *Document) SetCellMargin(margin float64)

func (*Document) SetDrawColor

func (_m *Document) SetDrawColor(r int, g int, b int)

func (*Document) SetError

func (_m *Document) SetError(err error)

func (*Document) SetFillColor

func (_m *Document) SetFillColor(r int, g int, b int)

func (*Document) SetFont

func (_m *Document) SetFont(familyStr string, styleStr string, size float64)

func (*Document) SetLeftMargin

func (_m *Document) SetLeftMargin(margin float64)

func (*Document) SetMargins

func (_m *Document) SetMargins(left float64, top float64, right float64)

func (*Document) SetRightMargin

func (_m *Document) SetRightMargin(margin float64)

func (*Document) SetTextColor

func (_m *Document) SetTextColor(r int, g int, b int)

func (*Document) SetTopMargin

func (_m *Document) SetTopMargin(margin float64)

func (*Document) SetX

func (_m *Document) SetX(x float64)

func (*Document) SetXY

func (_m *Document) SetXY(x float64, y float64)

func (*Document) SetY

func (_m *Document) SetY(y float64)

func (*Document) TransformBegin

func (_m *Document) TransformBegin()

func (*Document) TransformEnd

func (_m *Document) TransformEnd()

func (*Document) TransformRotate

func (_m *Document) TransformRotate(angle float64, x float64, y float64)

func (*Document) Write

func (_m *Document) Write(h float64, txtStr string)

type Layout

type Layout struct {
	mock.Mock
}

func (*Layout) Height

func (_m *Layout) Height() float64

func (*Layout) Orientation

func (_m *Layout) Orientation() string

func (*Layout) Unit

func (_m *Layout) Unit() string

func (*Layout) Width

func (_m *Layout) Width() float64

type Pdf

type Pdf struct {
	mock.Mock
}

func (*Pdf) Bytes

func (_m *Pdf) Bytes(buffer *bytes.Buffer) []byte

func (*Pdf) Document

func (_m *Pdf) Document() documents.Document

func (*Pdf) Layout

func (_m *Pdf) Layout() layouts.Layout

func (*Pdf) LoadFonts

func (_m *Pdf) LoadFonts(name string, styles map[string]string)

type PdfDrawer

type PdfDrawer struct {
	mock.Mock
}

func (*PdfDrawer) AddPage

func (_m *PdfDrawer) AddPage()

func (*PdfDrawer) Error

func (_m *PdfDrawer) Error() error

func (*PdfDrawer) Output

func (_m *PdfDrawer) Output(w io.Writer) error

func (*PdfDrawer) SetError

func (_m *PdfDrawer) SetError(err error)

type Size

type Size struct {
	mock.Mock
}

func (*Size) Height

func (_m *Size) Height() float64

func (*Size) Orientation

func (_m *Size) Orientation() string

func (*Size) Unit

func (_m *Size) Unit() string

func (*Size) Width

func (_m *Size) Width() float64

type Template

type Template struct {
	mock.Mock
}

func (*Template) AddError

func (_m *Template) AddError(err error)

func (*Template) Blocks

func (_m *Template) Blocks() []templates.Block

func (*Template) Errors

func (_m *Template) Errors() []error

func (*Template) Layout

func (_m *Template) Layout() layouts.Layout

func (*Template) LoadBlock

func (_m *Template) LoadBlock(raw_block map[string]interface{}, raw_input map[string]interface{}) templates.Block

func (*Template) LoadBlocks

func (_m *Template) LoadBlocks(user_input interface{})

func (*Template) WaitGroup

func (_m *Template) WaitGroup() *sync.WaitGroup

Jump to

Keyboard shortcuts

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