Documentation ¶
Index ¶
- func CollectEventIdsForDrivers(pool *pgxpool.Pool, driverNames []string) (map[string][]int, error)
- func CollectEventIdsForTeams(pool *pgxpool.Pool, teamNames []string) (map[string][]int, error)
- func SearchDriversInTeams(pool *pgxpool.Pool, teams []string) (map[string][]DbDriverSummary, error)
- func SearchTeamsForDrivers(pool *pgxpool.Pool, drivers []string) (map[string][]DbTeamSummary, error)
- type CarInfo
- type DbAnalysis
- type DbDriverSummary
- type DbTeamInEvent
- type DbTeamSummary
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CollectEventIdsForTeams ¶
func SearchDriversInTeams ¶
teams contains the exact team names for which the drivers should be collected.
func SearchTeamsForDrivers ¶
func SearchTeamsForDrivers(pool *pgxpool.Pool, drivers []string) (map[string][]DbTeamSummary, error)
teams contains the exact team names for which the drivers should be collected.
Types ¶
type DbAnalysis ¶
type DbAnalysis struct { ID int `json:"id"` EventId int `json:"eventId"` // TODO: Cars CarInfo []CarInfo CarLaps []struct { CarNum string Laps []struct { LapNo int LapTime float64 } } RaceOrder []string // last computed race order (contain carNums) }
func GetAnalysisForEvent ¶
func GetAnalysisForEvent(pool *pgxpool.Pool, eventId int) (*DbAnalysis, error)
func GetAnalysisForEvents ¶
func GetAnalysisForEvents(pool *pgxpool.Pool, eventIds []int) ([]DbAnalysis, error)
type DbDriverSummary ¶
type DbDriverSummary struct { Name string `json:"name"` CarNum []string `json:"carNum"` CarClass []string `json:"carClass"` Teams []string `json:"drivers"` EventIds []int `json:"eventId"` }
func SearchDrivers ¶
func SearchDrivers(pool *pgxpool.Pool, arg string) ([]DbDriverSummary, error)
type DbTeamInEvent ¶
type DbTeamSummary ¶
type DbTeamSummary struct { Name string `json:"name"` CarNum []string `json:"carNum"` CarClass []string `json:"carClass"` Drivers []string `json:"drivers"` EventIds []int `json:"eventId"` }
func SearchTeams ¶
func SearchTeams(pool *pgxpool.Pool, arg string) ([]DbTeamSummary, error)
Click to show internal directories.
Click to hide internal directories.