Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlertFn ¶
type AlertFn func(msg string)
func SendTelegramAlert ¶
func SendTelegramAlert(tg MessageSender, subscriptionService subscription.Service) AlertFn
type CachedRaceWeek ¶
type CachedRaceWeek struct {
RaceWeekRepository
// contains filtered or unexported fields
}
func NewCachedRaceWeek ¶
func NewCachedRaceWeek(raceWeekRepository RaceWeekRepository) *CachedRaceWeek
func (CachedRaceWeek) GetRaceWeek ¶
func (c CachedRaceWeek) GetRaceWeek() *RaceWeek
type CalendarFetcher ¶
type CalendarFetcher struct {
// contains filtered or unexported fields
}
func NewCalendarFetcher ¶
func NewCalendarFetcher(endpointURL string) *CalendarFetcher
func (CalendarFetcher) GetRaceWeek ¶
func (c CalendarFetcher) GetRaceWeek() *RaceWeek
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
func NewEngine ¶
func NewEngine(raceWeekRepository RaceWeekRepository, alertService *Alert) *Engine
type F1Calendar ¶
type F1Calendar struct {
Races []Race `json:"races"`
}
type MessageSender ¶
type Race ¶
type Race struct {
Name string `json:"name"`
Location string `json:"location"`
Latitude float64 `json:"latitude"`
Longitude float64 `json:"longitude"`
Round int64 `json:"round"`
Slug string `json:"slug"`
LocaleKey string `json:"localeKey"`
Sessions Sessions `json:"sessions"`
Affiliate *string `json:"affiliate,omitempty"`
Tbc *bool `json:"tbc,omitempty"`
}
type RaceWeek ¶
type RaceWeek struct {
Location string
Round int
Sessions []SessionToBeDone
}
type RaceWeekRepository ¶
type RaceWeekRepository interface {
GetRaceWeek() *RaceWeek
}
type SessionToBeDone ¶
Click to show internal directories.
Click to hide internal directories.