reports

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2021 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCustomersReportGenerator

func NewCustomersReportGenerator() generate.Generator

func NewMonthReportGenerator

func NewMonthReportGenerator() generate.Generator

func NewProductsReportGenerator

func NewProductsReportGenerator() generate.Generator

func PdfReport

func PdfReport(reportInfo ReportInfo) error

Types

type Column

type Column struct {
	Name  string
	Width uint
}

type CustomersReportGenerator

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

func (CustomersReportGenerator) Generate

func (c CustomersReportGenerator) Generate() (string, error)

type MonthReportGenerator

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

func (MonthReportGenerator) Generate

func (i MonthReportGenerator) Generate() (string, error)

type ProductsReportGenerator

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

func (ProductsReportGenerator) Generate

func (p ProductsReportGenerator) Generate() (string, error)

type ReportInfo

type ReportInfo struct {
	Orientation consts.Orientation
	Align       consts.Align
	Title       string
	Columns     []Column
	Contents    [][]string
	FilePath    string
}

Jump to

Keyboard shortcuts

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