Versions in this module Expand all Collapse all v0 v0.1.0 Nov 14, 2023 Changes in this version + func NewCardService(storage storage.Storage) service.CardService + type CardService struct + func (service CardService) CreateAssociations(ctx context.Context, conditions storage.CreateAssociationConditions) error + func (service CardService) CreateCard(ctx context.Context, card protomodels.Card) error + func (service CardService) EditCard(ctx context.Context, card protomodels.Card) error + func (service CardService) GetAssociations(ctx context.Context, cardIndex protomodels.CardIndex) (protomodels.RelatedCards, error) + func (service CardService) GetCard(ctx context.Context, condition protomodels.CardIndex) (protomodels.Card, error) + func (service CardService) ListCards(ctx context.Context, req storage.ListCardsRequest) ([]protomodels.Card, error) + func (service CardService) ListIndices(ctx context.Context) ([]protomodels.CardIndex, error) + func (service CardService) SearchWithDictionary(ctx context.Context, cardIndex protomodels.CardIndex) ([]string, error) + type ExerciseService struct + func NewExerciseService(storage storage.Storage) *ExerciseService + func (e ExerciseService) CreateChoiceProblems(ctx context.Context, cards []protomodels.CardIndex) (problems []string, answers []string, err error) + func (e ExerciseService) CreateFillingProblems(ctx context.Context, cards []protomodels.CardIndex) (problems []string, answers []string, err error) + type IOService struct + func NewIOService() *IOService + func (io IOService) ImportFromURL(ctx context.Context, url string) (string, error)