reports

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2021 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Report

func Report(reportInfo ReportInfo) error

Types

type Column

type Column struct {
	Name  string
	Width uint
}

type CustomerReport

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

func NewCustomerReport

func NewCustomerReport(dbService ports.DbService) CustomerReport

func (CustomerReport) Run

func (c CustomerReport) Run() (string, error)

type MonthReport

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

func NewMonthReport

func NewMonthReport(configService ports.ConfigService, langService lang.LangService, dbService ports.DbService) MonthReport

func (MonthReport) Run

func (m MonthReport) Run() (string, error)

type ProductsReport

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

func NewProductsReport

func NewProductsReport(dbService ports.DbService) ProductsReport

func (ProductsReport) Run

func (p ProductsReport) Run() (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