Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInternal = errors.New("internal storage error")
Functions ¶
This section is empty.
Types ¶
type CardRepo ¶
type CardRepo interface { Repo[domain.Card] ListAllInDeck(ctx context.Context, deck domain.Deck) ([]domain.Card, error) FindAll(ctx context.Context, word, translation string) ([]domain.Card, error) FindAllInDeck(ctx context.Context, word, translation string, deck domain.Deck) ([]domain.Card, error) FindAllByWord(ctx context.Context, word string) ([]domain.Card, error) FindAllByWordInDeck(ctx context.Context, word string, deck domain.Deck) ([]domain.Card, error) DeleteAllInDeck(ctx context.Context, deck domain.Deck) error }
Click to show internal directories.
Click to hide internal directories.