Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cards ¶
type Cards interface { AddCardToDealer(ctx context.Context, telegramChatID int64, card core.Card) error AddCardToPlayer(ctx context.Context, telegramChatID int64, username string, card core.Card) error DrawCardFromDeck(ctx context.Context, telegramChatID int64) (core.Card, error) SetNewDeck(ctx context.Context, telegramChatID int64, deck *core.Deck) error }
type Repository ¶
func NewRepository ¶
func NewRepository(db *mongo.Client) *Repository
Click to show internal directories.
Click to hide internal directories.