Documentation ¶
Index ¶
- type AuthUsecase
- type TodoUsecase
- func (service TodoUsecase) CreateTodo(t entity.CreateTodoParam) (*entity.Todo, error)
- func (service TodoUsecase) DeleteTodo(ID primitive.ObjectID) (bool, error)
- func (service TodoUsecase) GetAllUserTodos(ID primitive.ObjectID) ([]*entity.Todo, error)
- func (service TodoUsecase) GetTodo(ID primitive.ObjectID) (*entity.Todo, error)
- func (service TodoUsecase) UpdateTodo(ID primitive.ObjectID, t entity.UpdateTodoParam) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthUsecase ¶
type AuthUsecase struct {
// contains filtered or unexported fields
}
func NewAuthUsecase ¶
func NewAuthUsecase(userRepository internal.UserRepository) *AuthUsecase
func (AuthUsecase) GenerateAuthToken ¶
func (AuthUsecase) SSO ¶
func (service AuthUsecase) SSO(token string, authenticator internal.SSOAuthenticator) (*entity.User, error)
type TodoUsecase ¶
type TodoUsecase struct {
// contains filtered or unexported fields
}
func NewTodoUsecase ¶
func NewTodoUsecase(todoRepository internal.TodoRepository) *TodoUsecase
func (TodoUsecase) CreateTodo ¶
func (service TodoUsecase) CreateTodo(t entity.CreateTodoParam) (*entity.Todo, error)
func (TodoUsecase) DeleteTodo ¶
func (service TodoUsecase) DeleteTodo(ID primitive.ObjectID) (bool, error)
func (TodoUsecase) GetAllUserTodos ¶
func (TodoUsecase) UpdateTodo ¶
func (service TodoUsecase) UpdateTodo(ID primitive.ObjectID, t entity.UpdateTodoParam) (bool, error)
Click to show internal directories.
Click to hide internal directories.