service

package
v0.0.0-...-d8ec886 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 10, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

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 (*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 (*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)

Directories

Path Synopsis
Package mock_service is a generated GoMock package.
Package mock_service is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL