report

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PrintableData

type PrintableData struct {
	Start         time.Time
	End           time.Time
	SchedulesData []*ScheduleData
}

type ScheduleData

type ScheduleData struct {
	ID        string
	Name      string
	RotaUsers []*ScheduleUser
}

type ScheduleUser

type ScheduleUser struct {
	Name                        string
	NumWorkDays                 int
	TotalAmountWorkDays         int
	NumWeekendDays              int
	TotalAmountWeekendDays      int
	NumBankHolidaysDays         int
	TotalAmountBankHolidaysDays int
	TotalAmount                 int
}

type Writer

type Writer interface {
	GenerateReport(data *PrintableData) (string, error)
}

func NewConsoleReport

func NewConsoleReport(currency string) Writer

func NewPDFReport

func NewPDFReport(currency string) Writer

Jump to

Keyboard shortcuts

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