Documentation
¶
Index ¶
- type TaskRepository
- func (_m *TaskRepository) Delete(ctx context.Context, userID int64, taskID int64) error
- func (_m *TaskRepository) GetAll(ctx context.Context, userID int64, title string, filters domain.Filters) ([]*domain.Task, domain.Metadata, error)
- func (_m *TaskRepository) GetByID(ctx context.Context, userID int64, taskID int64) (*domain.Task, error)
- func (_m *TaskRepository) Insert(ctx context.Context, userID int64, task *domain.Task) error
- func (_m *TaskRepository) Update(ctx context.Context, task *domain.Task) error
- type TaskUsecase
- func (_m *TaskUsecase) Delete(ctx context.Context, userID int64, taskID int64) error
- func (_m *TaskUsecase) GetAll(ctx context.Context, userID int64, title string, filters domain.Filters) ([]*domain.Task, domain.Metadata, error)
- func (_m *TaskUsecase) GetByID(ctx context.Context, userID int64, taskID int64) (*domain.Task, error)
- func (_m *TaskUsecase) Insert(ctx context.Context, userID int64, task *domain.Task) error
- func (_m *TaskUsecase) Update(ctx context.Context, task *domain.Task) error
- type TokenRepository
- type TokenUsecase
- type UserRepository
- func (_m *UserRepository) GetByEmail(ctx context.Context, email string) (*domain.User, error)
- func (_m *UserRepository) GetForToken(ctx context.Context, tokenScope string, tokenPlaintext string) (*domain.User, error)
- func (_m *UserRepository) Insert(ctx context.Context, user *domain.User) error
- func (_m *UserRepository) Update(ctx context.Context, user *domain.User) error
- type UserUsecase
- func (_m *UserUsecase) Activate(ctx context.Context, tokenPlaintext string) (*domain.User, error)
- func (_m *UserUsecase) Authenticate(ctx context.Context, tokenScope string, tokenPlaintext string) (*domain.User, error)
- func (_m *UserUsecase) Insert(ctx context.Context, user *domain.User) error
- func (_m *UserUsecase) Login(ctx context.Context, email string, password string) (*domain.Token, error)
- func (_m *UserUsecase) Register(ctx context.Context, user *domain.User) error
- func (_m *UserUsecase) Update(ctx context.Context, user *domain.User) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TaskRepository ¶
TaskRepository is an autogenerated mock type for the TaskRepository type
func (*TaskRepository) Delete ¶
Delete provides a mock function with given fields: ctx, userID, taskID
func (*TaskRepository) GetAll ¶
func (_m *TaskRepository) GetAll(ctx context.Context, userID int64, title string, filters domain.Filters) ([]*domain.Task, domain.Metadata, error)
GetAll provides a mock function with given fields: ctx, userID, title, filters
func (*TaskRepository) GetByID ¶
func (_m *TaskRepository) GetByID(ctx context.Context, userID int64, taskID int64) (*domain.Task, error)
GetByID provides a mock function with given fields: ctx, userID, taskID
type TaskUsecase ¶
TaskUsecase is an autogenerated mock type for the TaskUsecase type
func (*TaskUsecase) GetAll ¶
func (_m *TaskUsecase) GetAll(ctx context.Context, userID int64, title string, filters domain.Filters) ([]*domain.Task, domain.Metadata, error)
GetAll provides a mock function with given fields: ctx, userID, title, filters
func (*TaskUsecase) GetByID ¶
func (_m *TaskUsecase) GetByID(ctx context.Context, userID int64, taskID int64) (*domain.Task, error)
GetByID provides a mock function with given fields: ctx, userID, taskID
type TokenRepository ¶
TokenRepository is an autogenerated mock type for the TokenRepository type
func (*TokenRepository) DeleteAllForUser ¶
DeleteAllForUser provides a mock function with given fields: ctx, scope, userID
type TokenUsecase ¶
TokenUsecase is an autogenerated mock type for the TokenUsecase type
func (*TokenUsecase) DeleteAllForUser ¶
DeleteAllForUser provides a mock function with given fields: ctx, scope, userID
type UserRepository ¶
UserRepository is an autogenerated mock type for the UserRepository type
func (*UserRepository) GetByEmail ¶
GetByEmail provides a mock function with given fields: ctx, email
func (*UserRepository) GetForToken ¶
func (_m *UserRepository) GetForToken(ctx context.Context, tokenScope string, tokenPlaintext string) (*domain.User, error)
GetForToken provides a mock function with given fields: ctx, tokenScope, tokenPlaintext
type UserUsecase ¶
UserUsecase is an autogenerated mock type for the UserUsecase type
func (*UserUsecase) Activate ¶
Activate provides a mock function with given fields: ctx, tokenPlaintext
func (*UserUsecase) Authenticate ¶
func (_m *UserUsecase) Authenticate(ctx context.Context, tokenScope string, tokenPlaintext string) (*domain.User, error)
Authenticate provides a mock function with given fields: ctx, tokenScope, tokenPlaintext
func (*UserUsecase) Login ¶
func (_m *UserUsecase) Login(ctx context.Context, email string, password string) (*domain.Token, error)
Login provides a mock function with given fields: ctx, email, password