Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemoryPlayerRepository ¶
MemoryPlayerRepository is an in-memory player repository.
func NewMemoryPlayerRepository ¶
func NewMemoryPlayerRepository() *MemoryPlayerRepository
NewMemoryPlayerRepository intializes an in-memory player repository.
func (*MemoryPlayerRepository) Add ¶
func (r *MemoryPlayerRepository) Add(p *player.Player) error
Add stores a new player in the repository.
type MemoryTeamRepository ¶
MemoryTeamRepository is an in-memory team repository.
func NewMemoryTeamRepository ¶
func NewMemoryTeamRepository() *MemoryTeamRepository
NewMemoryTeamRepository intializes an in-memory team repository.
func (*MemoryTeamRepository) Add ¶
func (r *MemoryTeamRepository) Add(t *team.Team) error
Add stores a new team in the repository.
func (*MemoryTeamRepository) GetPlayers ¶
GetPlayers retrieves a team by ID.
Click to show internal directories.
Click to hide internal directories.