Documentation ¶
Index ¶
- type Repository
- func (r Repository) CreateWord(ctx context.Context, name string) (*dictionary.Word, error)
- func (r Repository) DeleteWordById(ctx context.Context, id string) error
- func (r Repository) GetWordById(ctx context.Context, id string) (*dictionary.Word, error)
- func (r *Repository) GetWordByName(ctx context.Context, name string) (*dictionary.Word, error)
- func (r Repository) GetWords(ctx context.Context) ([]dictionary.Word, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository struct { GetWordsResponse []dictionary.Word GetWordsError error GetWordByIdResponse *dictionary.Word GetWordByIdError error GetWordByNameResponse *dictionary.Word GetWordByNameError error CreateWordResponse *dictionary.Word CreateWordError error DeleteWordByIdError error CreateWordsResponse []dictionary.Word CreateWordsError error }
func (Repository) CreateWord ¶
func (r Repository) CreateWord(ctx context.Context, name string) (*dictionary.Word, error)
func (Repository) DeleteWordById ¶
func (r Repository) DeleteWordById(ctx context.Context, id string) error
func (Repository) GetWordById ¶
func (r Repository) GetWordById(ctx context.Context, id string) (*dictionary.Word, error)
func (*Repository) GetWordByName ¶
func (r *Repository) GetWordByName(ctx context.Context, name string) (*dictionary.Word, error)
func (Repository) GetWords ¶
func (r Repository) GetWords(ctx context.Context) ([]dictionary.Word, error)
Click to show internal directories.
Click to hide internal directories.