Documentation ¶
Index ¶
- type MatchRepository
- func (r *MatchRepository) Create(ctx context.Context, match *entity.Match) error
- func (r *MatchRepository) FindAll(ctx context.Context) ([]*entity.Match, error)
- func (r *MatchRepository) FindByID(ctx context.Context, id string) (*entity.Match, error)
- func (r *MatchRepository) SaveActions(ctx context.Context, match *entity.Match, score float64) error
- func (r *MatchRepository) Update(ctx context.Context, match *entity.Match) error
- type MyTeamRepository
- func (m *MyTeamRepository) AddScore(ctx context.Context, myTeam *entity.MyTeam, score float64) error
- func (m *MyTeamRepository) Create(ctx context.Context, myTeam *entity.MyTeam) error
- func (m *MyTeamRepository) FindAllPlayers(ctx context.Context, teamID string) ([]entity.Player, error)
- func (m *MyTeamRepository) FindByID(ctx context.Context, id string) (*entity.MyTeam, error)
- func (m *MyTeamRepository) FindByIDForUpdate(ctx context.Context, id string) (*entity.MyTeam, error)
- func (m *MyTeamRepository) SavePlayers(ctx context.Context, myTeam *entity.MyTeam) error
- type PlayerRepository
- func (r *PlayerRepository) Create(ctx context.Context, player *entity.Player) error
- func (r *PlayerRepository) FindAll(ctx context.Context) ([]*entity.Player, error)
- func (r *PlayerRepository) FindAllByIDs(ctx context.Context, ids []string) ([]entity.Player, error)
- func (r *PlayerRepository) FindByID(ctx context.Context, id string) (*entity.Player, error)
- func (r *PlayerRepository) FindByIDForUpdate(ctx context.Context, id string) (*entity.Player, error)
- func (r *PlayerRepository) Update(ctx context.Context, player *entity.Player) error
- type Repository
- type TeamRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MatchRepository ¶
type MatchRepository struct {
Repository
}
func NewMatchRepository ¶
func NewMatchRepository(dbConn *sql.DB) *MatchRepository
func (*MatchRepository) SaveActions ¶
type MyTeamRepository ¶
type MyTeamRepository struct {
Repository
}
func NewMyTeamRepository ¶
func NewMyTeamRepository(dbConn *sql.DB) *MyTeamRepository
func (*MyTeamRepository) FindAllPlayers ¶
func (*MyTeamRepository) FindByIDForUpdate ¶
func (*MyTeamRepository) SavePlayers ¶
type PlayerRepository ¶
type PlayerRepository struct {
Repository
}
func NewPlayerRepository ¶
func NewPlayerRepository(dbConn *sql.DB) *PlayerRepository
func (*PlayerRepository) FindAllByIDs ¶
func (*PlayerRepository) FindByIDForUpdate ¶
type Repository ¶
type TeamRepository ¶
type TeamRepository struct {
Repository
}
func NewTeamRepository ¶
func NewTeamRepository(dbConn *sql.DB) *TeamRepository
Click to show internal directories.
Click to hide internal directories.