Documentation
¶
Index ¶
- func ChangeRegistrationLinks(events []*Event)
- func CreateCalendar(eventsList []*Event, now time.Time, baseUrl utils.Url, calendarUrl string, ...) error
- func CreateEventCalendar(event *Event, now time.Time, baseUrl utils.Url, calendarUrl string, ...) error
- func FindPrevNextEvents(eventList []*Event)
- func FindSiblings(eventList []*Event, today time.Time)
- func FindUpcomingNearEvents(eventList []*Event, upcomingEvents []*Event, maxDistanceKM float64, count int)
- func LoadSheets(config SheetsConfigData, today time.Time) ([]*Event, []*Event, []*Event, []*ParkrunEvent, []*Tag, []*Serie, error)
- func NonSeparators(events []*Event) int
- func SplitEvents(eventList []*Event) ([]*Event, []*Event)
- func SplitObsolete(eventList []*Event) ([]*Event, []*Event)
- func ValidateDateOrder(events []*Event)
- func ValidateNameOrder(eventList []*Event)
- type CheckUrl
- type Columns
- type Data
- type Event
- func (event *Event) CalendarSlug() string
- func (event Event) GenerateDescription() string
- func (event Event) GetUUID() (uuid.UUID, error)
- func (event Event) IsSeparator() bool
- func (event *Event) LinkTitle() string
- func (event *Event) NiceType() string
- func (event *Event) Slug() string
- func (event *Event) SlugFile() string
- func (event *Event) SlugNoBase() string
- func (event *Event) SlugOld() string
- type EventMeta
- type Location
- type ParkrunEvent
- type Serie
- type SheetsConfigData
- type Tag
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangeRegistrationLinks ¶
func ChangeRegistrationLinks(events []*Event)
func CreateCalendar ¶
func CreateEventCalendar ¶
func FindPrevNextEvents ¶
func FindPrevNextEvents(eventList []*Event)
func FindSiblings ¶
func FindUpcomingNearEvents ¶
func LoadSheets ¶
func LoadSheets(config SheetsConfigData, today time.Time) ([]*Event, []*Event, []*Event, []*ParkrunEvent, []*Tag, []*Serie, error)
func NonSeparators ¶
func SplitEvents ¶
func SplitObsolete ¶
func ValidateDateOrder ¶
func ValidateDateOrder(events []*Event)
func ValidateNameOrder ¶
func ValidateNameOrder(eventList []*Event)
Types ¶
type Data ¶
type Data struct { Events []*Event EventsOld []*Event EventsObsolete []*Event Groups []*Event GroupsObsolete []*Event Shops []*Event ShopsObsolete []*Event Tags []*Tag Series []*Serie SeriesOld []*Serie ParkrunEvents []*ParkrunEvent }
func (*Data) CheckLinks ¶
func (data *Data) CheckLinks()
type Event ¶
type Event struct { Type string Name utils.Name NameOld utils.Name Time utils.TimeRange Old bool Status string Cancelled bool Obsolete bool Special bool Location Location Details string Details2 template.HTML Url string RawTags []string Tags []*Tag RawSeries []string Series []*Serie Links []*utils.Link Calendar string CalendarGoogle string Added string New bool Prev *Event Next *Event UpcomingNear []*Event Meta EventMeta }
func AddMonthSeparators ¶
func (*Event) CalendarSlug ¶
func (Event) GenerateDescription ¶
func (Event) IsSeparator ¶
func (*Event) SlugNoBase ¶
type Location ¶
type Location struct { City string Country string Geo string Lat float64 Lon float64 Distance string Direction string }
func CreateLocation ¶
func (Location) GoogleMaps ¶
func (Location) NameNoFlag ¶
type ParkrunEvent ¶
type Serie ¶
type Serie struct { Name utils.Name Description template.HTML Links []*utils.Link Events []*Event EventsOld []*Event Groups []*Event Shops []*Event }
func CreateSerie ¶
type SheetsConfigData ¶
func LoadSheetsConfig ¶
func LoadSheetsConfig(path string) (SheetsConfigData, error)
Click to show internal directories.
Click to hide internal directories.