Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CardService ¶
type CardService interface { ListAllCards(inDeck domain.Deck) ([]domain.Card, error) FindCardsByWord(word string) ([]domain.Card, error) FindCardsByWordInDeck(word string, deck domain.Deck) ([]domain.Card, error) FilterCards(filterFunc func(domain.Card) bool) ([]domain.Card, error) SaveCard(card domain.Card) (*domain.Card, error) PutCardInDeck(card domain.Card, deck domain.Deck) (*domain.Card, error) DeleteCard(card domain.Card) error DeleteAllCardsInDeck(deck domain.Deck) error }
type DeckService ¶
type DeckService interface { ListAllDecks() ([]domain.Deck, error) FindDeckByName(name string) (*domain.Deck, error) FilterDecks(filterFunc func(domain.Deck) bool) ([]domain.Deck, error) SaveDeck(deck domain.Deck) (*domain.Deck, error) DeleteDeckByName(name string) error }
DeckService to operate decks.
type FlashcardService ¶
type FlashcardService interface { CardService DeckService GetStorage() *storage.Storage }
func NewFlashcard ¶
func NewFlashcard(storage *storage.Storage) FlashcardService
Click to show internal directories.
Click to hide internal directories.