team_season

package
v0.0.0-...-5888283 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 4, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	UpdateFranchiseTeamSeasons(ctx context.Context, nbaLeagueID string, nbaFranchises []nba.Franchise) ([]api.TeamSeason, error)
}

func NewService

func NewService(teamSeasonStore Store, nbaClient nba.Client) Service

type Store

type Store interface {
	GetTeamSeasonsWithIDs(ctx context.Context, teamSeasonIDs []string) ([]api.TeamSeason, error)
	UpdateTeamSeasons(ctx context.Context, teamSeasonUpdates []TeamSeasonUpdate) ([]api.TeamSeason, error)
}

type TeamSeasonUpdate

type TeamSeasonUpdate struct {
	NBATeamID       int
	NBALeagueID     string
	SeasonStartYear int
	ConferenceName  string
	DivisionName    string
	Name            string
	City            string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL