repositorystubs

package
v0.0.0-...-c8e808c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL