Documentation
¶
Index ¶
- Variables
- func EnglishPriceHandler(p string) (price string)
- func FindPrice(arr []string) string
- func FindTime(s string, prefix string) string
- func GetCalendarData(ctx context.Context, user datastructures.AuthUser) chan datastructures.CalendarEvents
- func GetDate(md []rune, sep rune) (month string, day string, err error)
- func GetJSON(url string, target interface{}) error
- func GetRelevantYear(month int) int
- func GetTimeFromString(s string) (hour string, minute string, nextDay bool)
- func GetUniqueVenueIDs(a []datastructures.LiveHouse) (b []string)
- func GetUniqueVenues(a []datastructures.LiveHouse) (b []datastructures.LiveHouse)
- func GetYearMonth(ym []rune, sep rune) (year string, month string, err error)
- func GetYearMonthDay(ymd []rune, sep1 rune, sep2 rune) (year string, month string, day string, err error)
- func InsertShortYearMonth(s string) string
- func InsertYearMonth(s string) string
- func ParseForm(r *http.Request, v any) *logging.StatusError
- func ParseTime(d string, t string) (res time.Time, err error)
- func Pointer[T any](v T) *T
- func ProcessArtists(a []string) (artists []string)
- func SpacedPriceTimeFetcher(d string, s string) (price string, open time.Time, start time.Time, err error)
- type ConnectorTestErrorCreator
- type ConnectorTestResult
- type ConnectorTestResults
- type PriceHandler
- type TimeHandler
Constants ¶
This section is empty.
Variables ¶
View Source
var JapanTime = time.FixedZone("UTC+9", +9*60*60)
Functions ¶
func EnglishPriceHandler ¶
func GetCalendarData ¶
func GetCalendarData(ctx context.Context, user datastructures.AuthUser) chan datastructures.CalendarEvents
func GetRelevantYear ¶
GetRelevantYear gets the year for a given month. Some connectors have no way to get the year from DOM, so we make a basic set of assumptions:
1. If the month of the live is equal to or greater than the current month, assume the live is in the current year.
2. If the month of the live is less than the current month, assume the live is next year.
func GetTimeFromString ¶
func GetUniqueVenueIDs ¶
func GetUniqueVenueIDs(a []datastructures.LiveHouse) (b []string)
func GetUniqueVenues ¶
func GetUniqueVenues(a []datastructures.LiveHouse) (b []datastructures.LiveHouse)
func GetYearMonthDay ¶
func InsertShortYearMonth ¶
func InsertYearMonth ¶
func ProcessArtists ¶
Types ¶
type ConnectorTestErrorCreator ¶
type ConnectorTestErrorCreator struct { T *testing.T Chan chan ConnectorTestResult Name string }
func (ConnectorTestErrorCreator) Error ¶
func (c ConnectorTestErrorCreator) Error(err any)
func (ConnectorTestErrorCreator) Errorf ¶
func (c ConnectorTestErrorCreator) Errorf(format string, args ...any)
func (ConnectorTestErrorCreator) Succeed ¶
func (c ConnectorTestErrorCreator) Succeed()
type ConnectorTestResult ¶
type ConnectorTestResults ¶
type ConnectorTestResults []ConnectorTestResult
func (ConnectorTestResults) String ¶
func (testResults ConnectorTestResults) String() string
type PriceHandler ¶
Click to show internal directories.
Click to hide internal directories.