Documentation ¶
Index ¶
- type BooksRepository
- func (_m *BooksRepository) Create(ctx context.Context, title string, author string) (*models.Book, error)
- func (_m *BooksRepository) DeleteById(ctx context.Context, id string) error
- func (_m *BooksRepository) GetById(ctx context.Context, id string) (*models.Book, error)
- func (_m *BooksRepository) GetByTitle(ctx context.Context, title string) (*models.Book, error)
- type RefreshTokensRepository
- func (_m *RefreshTokensRepository) Create(ctx context.Context, id string, refreshToken string, userId uuid.UUID) error
- func (_m *RefreshTokensRepository) Delete(ctx context.Context, id string) error
- func (_m *RefreshTokensRepository) DeleteByUserID(ctx context.Context, userID uuid.UUID) error
- func (_m *RefreshTokensRepository) Get(ctx context.Context, id string) (*models.RefreshTokenData, error)
- type UsersRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BooksRepository ¶
BooksRepository is an autogenerated mock type for the BooksRepository type
func NewBooksRepository ¶
func NewBooksRepository(t interface { mock.TestingT Cleanup(func()) }) *BooksRepository
NewBooksRepository creates a new instance of BooksRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*BooksRepository) Create ¶
func (_m *BooksRepository) Create(ctx context.Context, title string, author string) (*models.Book, error)
Create provides a mock function with given fields: ctx, title, author
func (*BooksRepository) DeleteById ¶
func (_m *BooksRepository) DeleteById(ctx context.Context, id string) error
DeleteById provides a mock function with given fields: ctx, id
func (*BooksRepository) GetByTitle ¶
GetByTitle provides a mock function with given fields: ctx, title
type RefreshTokensRepository ¶
RefreshTokensRepository is an autogenerated mock type for the RefreshTokensRepository type
func NewRefreshTokensRepository ¶
func NewRefreshTokensRepository(t interface { mock.TestingT Cleanup(func()) }) *RefreshTokensRepository
NewRefreshTokensRepository creates a new instance of RefreshTokensRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*RefreshTokensRepository) Create ¶
func (_m *RefreshTokensRepository) Create(ctx context.Context, id string, refreshToken string, userId uuid.UUID) error
Create provides a mock function with given fields: ctx, id, refreshToken, userId
func (*RefreshTokensRepository) Delete ¶
func (_m *RefreshTokensRepository) Delete(ctx context.Context, id string) error
Delete provides a mock function with given fields: ctx, id
func (*RefreshTokensRepository) DeleteByUserID ¶
DeleteByUserID provides a mock function with given fields: ctx, userID
func (*RefreshTokensRepository) Get ¶
func (_m *RefreshTokensRepository) Get(ctx context.Context, id string) (*models.RefreshTokenData, error)
Get provides a mock function with given fields: ctx, id
type UsersRepository ¶
UsersRepository is an autogenerated mock type for the UsersRepository type
func NewUsersRepository ¶
func NewUsersRepository(t interface { mock.TestingT Cleanup(func()) }) *UsersRepository
NewUsersRepository creates a new instance of UsersRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*UsersRepository) ExistsById ¶
ExistsById provides a mock function with given fields: ctx, userId
func (*UsersRepository) GetByUsername ¶
func (_m *UsersRepository) GetByUsername(ctx context.Context, username string) (*models.User, error)
GetByUsername provides a mock function with given fields: ctx, username