Documentation
¶
Index ¶
- func DriverRallyReport(rallyId int64, store *database.Store, config *configuration.Config) error
- func ExportClassReport(rallyID int64, store *database.Store, cfg *configuration.Config) error
- func ExportDriverSummaries(store *database.Store, config *configuration.Config) error
- func ExportReport(rallyId int64, store *database.Store, config *configuration.Config) error
- type ChampDriverRow
- type ChampSection
- type ClassPointsRow
- type ClassReportData
- type ClassTable
- type DriverReport
- type DriverReportConfig
- type RallyConfig
- type RallySection
- type ReportData
- type ScoreRecord
- type SeasonsStandings
- type SummaryRow
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DriverRallyReport ¶
func ExportClassReport ¶
ExportClassReport generates class tables for a single rally (rallyIDStr) AND championship totals across all rallies, then writes class_report.md.
func ExportDriverSummaries ¶
func ExportDriverSummaries(store *database.Store, config *configuration.Config) error
func ExportReport ¶
Types ¶
type ChampDriverRow ¶
type ChampSection ¶
type ChampSection struct {
ClassName string
Rows []ChampDriverRow
}
type ClassPointsRow ¶
type ClassReportData ¶
type ClassReportData struct {
Rally RallySection
Championship []ChampSection
}
type ClassTable ¶
type ClassTable struct {
ClassName string
Rows []ClassPointsRow
}
type DriverReport ¶
type DriverReport struct {
Stages []database.StageSummary
Overall []SummaryRow
}
type DriverReportConfig ¶
type DriverReportConfig struct {
Overall []database.RallyOverall
Finishers []database.RallyOverall
Config RallyConfig
}
type RallyConfig ¶
type RallySection ¶
type RallySection struct {
RallyID int64
Classes []ClassTable
}
type ReportData ¶
type ReportData struct {
Rally []ScoreRecord
Championship []SeasonsStandings
}
type ScoreRecord ¶
type ScoreRecord struct {
Raw database.RallyOverall
Points int64
}
ScoreRecord holds the raw data and the assigned points for each record.
type SeasonsStandings ¶
Click to show internal directories.
Click to hide internal directories.