Documentation ¶
Index ¶
- type AuthUsecase
- type SSOAuthenticator
- type TodoRepository
- func (_m *TodoRepository) Create(_a0 entity.CreateTodoParam) (*entity.Todo, error)
- func (_m *TodoRepository) DeleteById(_a0 primitive.ObjectID) (bool, error)
- func (_m *TodoRepository) GetTodoByID(_a0 primitive.ObjectID) (*entity.Todo, error)
- func (_m *TodoRepository) GetTodosByUserID(_a0 primitive.ObjectID) ([]*entity.Todo, error)
- func (_m *TodoRepository) UpdateById(_a0 primitive.ObjectID, _a1 entity.UpdateTodoParam) (bool, error)
- type TodoUsecase
- func (_m *TodoUsecase) CreateTodo(_a0 entity.CreateTodoParam) (*entity.Todo, error)
- func (_m *TodoUsecase) DeleteTodo(_a0 primitive.ObjectID) (bool, error)
- func (_m *TodoUsecase) GetAllUserTodos(_a0 primitive.ObjectID) ([]*entity.Todo, error)
- func (_m *TodoUsecase) UpdateTodo(_a0 primitive.ObjectID, _a1 entity.UpdateTodoParam) (bool, error)
- type Tokenizer
- type UserRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthUsecase ¶
AuthUsecase is an autogenerated mock type for the AuthUsecase type
func (*AuthUsecase) GenerateAuthToken ¶
func (_m *AuthUsecase) GenerateAuthToken(user entity.User, tokenizer internal.Tokenizer) (string, error)
GenerateAuthToken provides a mock function with given fields: user, tokenizer
func (*AuthUsecase) SSO ¶
func (_m *AuthUsecase) SSO(token string, authenticator internal.SSOAuthenticator) (*entity.User, error)
SSO provides a mock function with given fields: token, authenticator
type SSOAuthenticator ¶
SSOAuthenticator is an autogenerated mock type for the SSOAuthenticator type
func (*SSOAuthenticator) Authenticate ¶
func (_m *SSOAuthenticator) Authenticate(token string) (*entity.User, error)
Authenticate provides a mock function with given fields: token
type TodoRepository ¶
TodoRepository is an autogenerated mock type for the TodoRepository type
func (*TodoRepository) Create ¶
func (_m *TodoRepository) Create(_a0 entity.CreateTodoParam) (*entity.Todo, error)
Create provides a mock function with given fields: _a0
func (*TodoRepository) DeleteById ¶
func (_m *TodoRepository) DeleteById(_a0 primitive.ObjectID) (bool, error)
DeleteById provides a mock function with given fields: _a0
func (*TodoRepository) GetTodoByID ¶
GetTodoByID provides a mock function with given fields: _a0
func (*TodoRepository) GetTodosByUserID ¶
GetTodosByUserID provides a mock function with given fields: _a0
func (*TodoRepository) UpdateById ¶
func (_m *TodoRepository) UpdateById(_a0 primitive.ObjectID, _a1 entity.UpdateTodoParam) (bool, error)
UpdateById provides a mock function with given fields: _a0, _a1
type TodoUsecase ¶
TodoUsecase is an autogenerated mock type for the TodoUsecase type
func (*TodoUsecase) CreateTodo ¶
func (_m *TodoUsecase) CreateTodo(_a0 entity.CreateTodoParam) (*entity.Todo, error)
CreateTodo provides a mock function with given fields: _a0
func (*TodoUsecase) DeleteTodo ¶
func (_m *TodoUsecase) DeleteTodo(_a0 primitive.ObjectID) (bool, error)
DeleteTodo provides a mock function with given fields: _a0
func (*TodoUsecase) GetAllUserTodos ¶
GetAllUserTodos provides a mock function with given fields: _a0
func (*TodoUsecase) UpdateTodo ¶
func (_m *TodoUsecase) UpdateTodo(_a0 primitive.ObjectID, _a1 entity.UpdateTodoParam) (bool, error)
UpdateTodo provides a mock function with given fields: _a0, _a1
type UserRepository ¶
UserRepository is an autogenerated mock type for the UserRepository type
func (*UserRepository) Create ¶
func (_m *UserRepository) Create(_a0 entity.CreateUserParam) (*entity.User, error)
Create provides a mock function with given fields: _a0
func (*UserRepository) GetUserByEmail ¶
func (_m *UserRepository) GetUserByEmail(_a0 string) (*entity.User, error)
GetUserByEmail provides a mock function with given fields: _a0