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 UsersSchedulesSummary []*ScheduleUser }
type ScheduleData ¶
type ScheduleData struct { ID string Name string RotaUsers []*ScheduleUser }
type ScheduleUser ¶
type ScheduleUser struct { Name string NumWorkHours float32 NumWorkDays float32 TotalAmountWorkHours float32 NumWeekendHours float32 NumWeekendDays float32 TotalAmountWeekendHours float32 NumBankHolidaysHours float32 NumBankHolidaysDays float32 TotalAmountBankHolidaysHours float32 TotalAmount float32 }
type Writer ¶
type Writer interface {
GenerateReport(data *PrintableData) (string, error)
}
func NewConsoleReport ¶
func NewCsvReport ¶ added in v1.4.0
func NewPDFReport ¶
Click to show internal directories.
Click to hide internal directories.