Documentation ¶
Index ¶
- type Count
- type Player
- type Repo
- func (r *Repo) CreateUserFromTG(ctx context.Context, telegramUserID int64) (uuid.UUID, error)
- func (r *Repo) FindUserByTelegramID(ctx context.Context, telegramID int64) (*Player, error)
- func (r *Repo) GetPlayerCount(ctx context.Context, id uuid.UUID) (int32, error)
- func (r *Repo) ListPlayers(ctx context.Context) ([]Player, error)
- func (r *Repo) UpdatePlayerCount(ctx context.Context, playerID uuid.UUID, delta int16) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repo ¶
type Repo struct {
// contains filtered or unexported fields
}
Repo - db communications.
func (*Repo) CreateUserFromTG ¶
CreateUserFromTG creates new user from Telegram and returning its id.
func (*Repo) FindUserByTelegramID ¶
FindUserByTelegramID search for user by telegram ID.
func (*Repo) GetPlayerCount ¶
GetPlayerCount returns player count.
func (*Repo) ListPlayers ¶ added in v0.1.1
ListPlayers lists existing players.
Click to show internal directories.
Click to hide internal directories.