Documentation
¶
Index ¶
- Variables
- type GameRepository
- type LeaderboardDataRepository
- func (ld *LeaderboardDataRepository) GetByUID(ctx context.Context, uid string, offset int, count int) ([]domain.LeaderboardData, error)
- func (ld *LeaderboardDataRepository) GetPlayerPosition(ctx context.Context, lid string, pid string) (int, error)
- func (ld *LeaderboardDataRepository) Insert(ctx context.Context, lid string, pid string, v1 int, v2 int, v3 int) error
- type PlayerRepository
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrBetterDataAlreadyExists = errors.New("better data already exists") ErrLimit = errors.New("limit error") )
Functions ¶
This section is empty.
Types ¶
type GameRepository ¶
type GameRepository struct {
// contains filtered or unexported fields
}
func NewGameRepository ¶
func NewGameRepository(db *sql.DB) *GameRepository
type LeaderboardDataRepository ¶
type LeaderboardDataRepository struct {
// contains filtered or unexported fields
}
func NewLeaderboardDataRepository ¶
func NewLeaderboardDataRepository(db *sql.DB) *LeaderboardDataRepository
func (*LeaderboardDataRepository) GetByUID ¶
func (ld *LeaderboardDataRepository) GetByUID( ctx context.Context, uid string, offset int, count int, ) ([]domain.LeaderboardData, error)
func (*LeaderboardDataRepository) GetPlayerPosition ¶
type PlayerRepository ¶
type PlayerRepository struct {
// contains filtered or unexported fields
}
func NewPlayerRepository ¶
func NewPlayerRepository(db *sql.DB) *PlayerRepository
Click to show internal directories.
Click to hide internal directories.