Documentation ¶
Index ¶
- type AuthService
- type AuthServiceImpl
- type TaskService
- type TaskServiceImpl
- type UserService
- type UserServiceImpl
- func (us *UserServiceImpl) FindUserByEmail(email string) (*models.DBUserResponse, error)
- func (us *UserServiceImpl) FindUserById(id string) (*models.DBUserResponse, error)
- func (uc *UserServiceImpl) RemoveUserById(id string) error
- func (uc *UserServiceImpl) UpdateUserById(id string, data *models.UpdateInput) (*models.DBUserResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthService ¶
type AuthService interface { SignUpUser(*models.SignUpInput) (*models.DBUserResponse, error) SignInUser(*models.SignInInput) (*models.DBUserResponse, error) }
func NewAuthService ¶
func NewAuthService(storage *storage.MongoStorage, ctx context.Context, config *config.Config) AuthService
type AuthServiceImpl ¶
type AuthServiceImpl struct {
// contains filtered or unexported fields
}
func (*AuthServiceImpl) SignInUser ¶
func (uc *AuthServiceImpl) SignInUser(*models.SignInInput) (*models.DBUserResponse, error)
func (*AuthServiceImpl) SignUpUser ¶
func (uc *AuthServiceImpl) SignUpUser(user *models.SignUpInput) (*models.DBUserResponse, error)
type TaskService ¶
type TaskService interface { CreateTask(*models.CreateTaskScheme) (*models.DBTaskScheme, error) GetUserTasks(string, int, int) ([]*models.DBTaskScheme, error) TaskById(string) (*models.DBTaskScheme, error) }
func NewTaskService ¶
func NewTaskService(mongoStorage *storage.MongoStorage, ctx context.Context) TaskService
type TaskServiceImpl ¶
type TaskServiceImpl struct {
// contains filtered or unexported fields
}
func (*TaskServiceImpl) CreateTask ¶
func (p *TaskServiceImpl) CreateTask(task *models.CreateTaskScheme) (*models.DBTaskScheme, error)
func (*TaskServiceImpl) GetUserTasks ¶
func (p *TaskServiceImpl) GetUserTasks(user string, page int, limit int) ([]*models.DBTaskScheme, error)
func (*TaskServiceImpl) TaskById ¶
func (p *TaskServiceImpl) TaskById(id string) (*models.DBTaskScheme, error)
type UserService ¶
type UserService interface { FindUserById(id string) (*models.DBUserResponse, error) FindUserByEmail(email string) (*models.DBUserResponse, error) UpdateUserById(id string, data *models.UpdateInput) (*models.DBUserResponse, error) RemoveUserById(id string) error }
func NewUserServiceImpl ¶
func NewUserServiceImpl(storage *storage.MongoStorage, ctx context.Context) UserService
type UserServiceImpl ¶
type UserServiceImpl struct {
// contains filtered or unexported fields
}
func (*UserServiceImpl) FindUserByEmail ¶
func (us *UserServiceImpl) FindUserByEmail(email string) (*models.DBUserResponse, error)
func (*UserServiceImpl) FindUserById ¶
func (us *UserServiceImpl) FindUserById(id string) (*models.DBUserResponse, error)
func (*UserServiceImpl) RemoveUserById ¶
func (uc *UserServiceImpl) RemoveUserById(id string) error
func (*UserServiceImpl) UpdateUserById ¶
func (uc *UserServiceImpl) UpdateUserById(id string, data *models.UpdateInput) (*models.DBUserResponse, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.