Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler interface { Routes() chi.Router List(w http.ResponseWriter, r *http.Request) Get(w http.ResponseWriter, r *http.Request) UpdateTeams(w http.ResponseWriter, r *http.Request) }
type Service ¶
type Service interface { Get(ctx context.Context, teamID string) (api.Team, error) ListTeams(ctx context.Context) ([]api.Team, error) UpdateTeamsForSeason(ctx context.Context, seasonStartYear int) ([]api.Team, error) UpdateFranchiseTeams(ctx context.Context, franchises []nba.Franchise) ([]api.Team, error) EnsureTeamsExistForLeague(ctx context.Context, logger *slog.Logger, nbaLeagueID string, nbaTeamIDs []int) error }
func NewService ¶
type Store ¶
type Store interface { GetTeamWithID(ctx context.Context, teamID string) (api.Team, error) GetTeamsWithIDs(ctx context.Context, ids []uuid.UUID) ([]api.Team, error) GetTeamsWithNBAIDs(ctx context.Context, ids []int) ([]api.Team, error) ListTeams(ctx context.Context) ([]api.Team, error) UpdateTeams(ctx context.Context, teams []TeamUpdate) ([]api.Team, error) NBATeamIDMappings(ctx context.Context) (map[string]string, error) }
Click to show internal directories.
Click to hide internal directories.