Documentation ¶
Index ¶
- func Connect(postgresHost, postgresUser, postgresPassword, postgresDBName string, ...) (db.PostgresDB, error)
- type PDB
- func (d *PDB) CheckUserEmail(email string) bool
- func (d *PDB) CheckUserPassword(password, email string) (err error)
- func (d *PDB) CheckUserUsername(username string) bool
- func (d *PDB) CrateUser(model models.Users) (userId int, err error)
- func (d *PDB) CreateList(model models.Lists) error
- func (d *PDB) CreateSubtask(model models.Tasks) error
- func (d *PDB) CreateTask(model models.Tasks) error
- func (d *PDB) DeleteList(id int) error
- func (d *PDB) DeleteSubtask(id int) error
- func (d *PDB) DeleteTask(id int) error
- func (d *PDB) DeleteUser(storage db.MinIOClient, ctx context.Context, model models.Users) error
- func (d *PDB) GetAllSubtasks(taskId int) (subTasksData []models.SubtasksData)
- func (d *PDB) GetAllTasks(listId int) (tasksData []models.TasksData)
- func (d *PDB) GetAllUserLists(userId int) (listsData []models.ListsData)
- func (d *PDB) GetListById(id int) (listData models.Lists)
- func (d *PDB) GetListByIdAndUserId(id, userId int) (listData models.Lists)
- func (d *PDB) GetListIdWhereTask(userId, taskId int) (listId int)
- func (d *PDB) GetListMaxIndex(userId int) (index int)
- func (d *PDB) GetListsForEditIndex(userId, listIndex int) (listData []models.Lists)
- func (d *PDB) GetSubtaskMaxIndex(taskId int) (index int)
- func (d *PDB) GetSubtasksForEditIndex(taskId, subtaskIndex int) (subtaskData []models.Tasks)
- func (d *PDB) GetTaskById(id int) (taksData models.Tasks)
- func (d *PDB) GetTaskIdWhereSubtask(subtaskId int) (taskId int)
- func (d *PDB) GetTaskMaxIndex(listId int) (index int)
- func (d *PDB) GetTasksForEditIndex(listId, taskIndex int) (taskData []models.Tasks)
- func (d *PDB) GetUser(model models.Users) (userData models.Users)
- func (d *PDB) GetUserByEmail(email string) (userData models.Users)
- func (d *PDB) GetUserById(id int) (userData models.Users)
- func (d *PDB) UpdateListData(model models.Lists) error
- func (d *PDB) UpdateListIndex(listId, index int) error
- func (d *PDB) UpdateListsIndexes(model models.Lists) (err error)
- func (d *PDB) UpdateSubtasksIndexes(model models.Tasks) (err error)
- func (d *PDB) UpdateTaskData(model models.Tasks) error
- func (d *PDB) UpdateTaskIndex(id, index int) error
- func (d *PDB) UpdateTasksIndexes(model models.Tasks) (err error)
- func (d *PDB) UpdateUser(where, model models.Users) error
- func (d *PDB) UpdateUserIcon(id int, icon string) error
- func (d *PDB) UpdateUserPassword(password, email string) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PDB ¶
func (*PDB) CheckUserEmail ¶
func (*PDB) CheckUserPassword ¶
func (*PDB) CheckUserUsername ¶
func (*PDB) DeleteList ¶
func (*PDB) DeleteSubtask ¶
func (*PDB) DeleteTask ¶
func (*PDB) DeleteUser ¶
func (*PDB) GetAllSubtasks ¶
func (d *PDB) GetAllSubtasks(taskId int) (subTasksData []models.SubtasksData)
func (*PDB) GetAllUserLists ¶
func (*PDB) GetListByIdAndUserId ¶
func (*PDB) GetListIdWhereTask ¶
func (*PDB) GetListMaxIndex ¶
func (*PDB) GetListsForEditIndex ¶
func (*PDB) GetSubtaskMaxIndex ¶
func (*PDB) GetSubtasksForEditIndex ¶
func (*PDB) GetTaskIdWhereSubtask ¶
func (*PDB) GetTaskMaxIndex ¶
func (*PDB) GetTasksForEditIndex ¶
func (*PDB) UpdateListIndex ¶
func (*PDB) UpdateSubtasksIndexes ¶
func (*PDB) UpdateTaskIndex ¶
func (*PDB) UpdateUserPassword ¶
Click to show internal directories.
Click to hide internal directories.