Documentation ¶
Index ¶
Constants ¶
View Source
const ContentTypeJSON = "application/json"
View Source
const NBAR2Bucket = "nba"
Variables ¶
View Source
var ErrNotFound = errors.New("not found")
Functions ¶
func NBAGameStatusNameMappings ¶
func NBAGameStatusNameMappings() map[nba.GameStatus]string
func NBASeasonStageNameMappings ¶
func NBASeasonStageNameMappings() map[int]SeasonStage
func WriteJSON ¶
func WriteJSON(statusCode int, obj interface{}, w http.ResponseWriter)
Types ¶
type FileOutputWriter ¶
type FileOutputWriter struct {
// contains filtered or unexported fields
}
func WithFileOutputWriter ¶
func WithFileOutputWriter(logger *slog.Logger, filepath string) FileOutputWriter
type R2OutputWriter ¶
type R2OutputWriter struct {
// contains filtered or unexported fields
}
func WithR2OutputWriter ¶
func WithR2OutputWriter( logger *slog.Logger, r2Client cloudflare.Client, bucket string, objectKey string, ) R2OutputWriter
type RetryableLogger ¶
type RetryableLogger struct {
// contains filtered or unexported fields
}
func (RetryableLogger) Debug ¶
func (r RetryableLogger) Debug(msg string, keysAndValues ...interface{})
func (RetryableLogger) Error ¶
func (r RetryableLogger) Error(msg string, keysAndValues ...interface{})
func (RetryableLogger) Info ¶
func (r RetryableLogger) Info(msg string, keysAndValues ...interface{})
func (RetryableLogger) Warn ¶
func (r RetryableLogger) Warn(msg string, keysAndValues ...interface{})
type SeasonStage ¶
type SeasonStage string
const ( SeasonStagePre SeasonStage = "pre" SeasonStageRegular SeasonStage = "regular" SeasonStageAllStar SeasonStage = "allstar" SeasonStagePost SeasonStage = "post" SeasonStagePlayIn SeasonStage = "playin" )
func NBASeasonTypeToInternal ¶
func NBASeasonTypeToInternal(nbaSeasonType nba.SeasonType) SeasonStage
Click to show internal directories.
Click to hide internal directories.