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) UpdatePlayers(w http.ResponseWriter, r *http.Request) }
type Service ¶
type Service interface { Get(ctx context.Context, playerID string) (api.Player, error) ListPlayers(ctx context.Context) ([]api.Player, error) UpdatePlayers(ctx context.Context, seasonStartYear int) ([]api.Player, error) }
func NewService ¶
type Store ¶
type Store interface { GetPlayerWithID(ctx context.Context, playerID string) (api.Player, error) ListPlayers(ctx context.Context) ([]api.Player, error) GetPlayersWithIDs(ctx context.Context, ids []string) ([]api.Player, error) UpdatePlayers(ctx context.Context, players []api.Player) ([]api.Player, error) }
Click to show internal directories.
Click to hide internal directories.