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