Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmailOperations ¶
type EmailOperations interface { AddEmailData(context.Context, interface{}) (string, error) GetEmailData(context.Context, string) (string, error) GetUserData(context.Context, string) (models.Users, error) DeleteEmailData(context.Context, string) error }
Redis operations
type ListOperations ¶
type ListOperations interface { CreateList(models.Lists) error GetAllUserLists(int) []models.ListsData GetListsForEditIndex(int, int) []models.Lists GetListById(int) models.Lists GetListByIdAndUserId(int, int) models.Lists GetListMaxIndex(int) int UpdateListData(models.Lists) error UpdateListIndex(int, int) error UpdateListsIndexes(models.Lists) error DeleteList(int) error }
type MinIOClient ¶
type PostgresDB ¶
type PostgresDB interface { UserOperations ListOperations TaskOperations SubtaskOperations }
type RedisClient ¶
type RedisClient interface { EmailOperations TokenOperations }
type SubtaskOperations ¶
type TaskOperations ¶
type TaskOperations interface { CreateTask(models.Tasks) error GetAllTasks(int) []models.TasksData GetTaskById(int) models.Tasks GetTasksForEditIndex(int, int) []models.Tasks GetListIdWhereTask(int, int) int GetTaskMaxIndex(int) int UpdateTaskData(models.Tasks) error UpdateTaskIndex(int, int) error UpdateTasksIndexes(models.Tasks) error DeleteTask(int) error }
type TokenOperations ¶
type TokenOperations interface { VerifyToken(context.Context, string) int VerifyRefreshToken(context.Context, string) int CreateTokens(context.Context, int) (string, string, error) CheckTokens(context.Context, int) (string, string, error) DeleteRefreshTokensData(context.Context, int) error DeleteAccessTokensData(context.Context, int) error }
type UserOperations ¶
type UserOperations interface { CrateUser(models.Users) (int, error) GetUserByEmail(string) models.Users CheckUserUsername(string) bool CheckUserEmail(string) bool GetUserById(int) models.Users UpdateUser(models.Users, models.Users) error UpdateUserPassword(string, string) error UpdateUserIcon(int, string) error CheckUserPassword(string, string) error DeleteUser(MinIOClient, context.Context, models.Users) error }
Postgres operations
Click to show internal directories.
Click to hide internal directories.