Documentation ¶
Index ¶
- type AuthService
- func (_m *AuthService) Login(ctx context.Context, username string, password string) (null.String, null.String, error)
- func (_m *AuthService) Logout(ctx context.Context, refreshToken string) error
- func (_m *AuthService) RefreshToken(ctx context.Context, refreshToken string) (null.String, null.String, error)
- type BooksService
- type TokensService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthService ¶
AuthService is an autogenerated mock type for the AuthService type
func NewAuthService ¶
func NewAuthService(t interface { mock.TestingT Cleanup(func()) }) *AuthService
NewAuthService creates a new instance of AuthService. 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 (*AuthService) Login ¶
func (_m *AuthService) Login(ctx context.Context, username string, password string) (null.String, null.String, error)
Login provides a mock function with given fields: ctx, username, password
type BooksService ¶
BooksService is an autogenerated mock type for the BooksService type
func NewBooksService ¶
func NewBooksService(t interface { mock.TestingT Cleanup(func()) }) *BooksService
NewBooksService creates a new instance of BooksService. 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 (*BooksService) CreateBook ¶
func (_m *BooksService) CreateBook(ctx context.Context, title string, author string) (*models.Book, error)
CreateBook provides a mock function with given fields: ctx, title, author
func (*BooksService) DeleteBookById ¶
func (_m *BooksService) DeleteBookById(ctx context.Context, id string) error
DeleteBookById provides a mock function with given fields: ctx, id
func (*BooksService) GetBookById ¶
GetBookById provides a mock function with given fields: ctx, id
type TokensService ¶
TokensService is an autogenerated mock type for the TokensService type
func NewTokensService ¶
func NewTokensService(t interface { mock.TestingT Cleanup(func()) }) *TokensService
NewTokensService creates a new instance of TokensService. 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 (*TokensService) CheckToken ¶
func (_m *TokensService) CheckToken(ctx context.Context, tokenString string) (uuid.UUID, bool, error)
CheckToken provides a mock function with given fields: ctx, tokenString