Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IUserAuthStorage ¶
type IUserAuthStorage interface { CreateUser(user request.Register) (userID string, err error) GetUserPassword(email string) (password string, err error) GetUserID(email string) (userID string, err error) CheckUser(email string) (exists bool, err error) GetUserProfile(userID string) (*response.UserProfile, error) ChangeUserProfile(userID string, profile *request.ChangeProfile) error GetUserPasswordById(userID string) (password string, err error) ChangeUserPassword(userID string, passwords string) error }
type TaskStorage ¶
type TaskStorage interface { GetTaskTypes(teamID string) (domain.TaskTypes, error) GetTaskAmount(taskTypeID int) (int, error) GetBusyNocPlaceses() (int, error) GetAvailableTaskID(teamID string, taskTypeID int) ([]string, error) GetTeamTaskAmount(taskTypeID int) (int, error) SetTaskToTeam(taskID string, taskTypeId int, teamID string) error CheckActiveTaskExist(teamID string) (bool, error) GetActiveTaskID(teamID string) (string, error) GetTask(taskID string) (domain.Task, error) GetTaskStartedTime(taskID string, TeamID string) (time.Time, error) GetTaskTypeName(taskID string) (string, error) SetActiveTaskExpired(taskID string, TeamID string) error SetAnswerText(text string, teamID string, taskID string) error SetAnswerImageBase64(url string, teamID string, taskID string) error GetAnswers(teamID string) ([]domain.Answer, error) }
type TeamStorage ¶
type TeamStorage interface { CreateTeam(teamName string) (TeamID string, err error) CheckTeam(teamName string) (exists bool, err error) UpdateTeam(teamID string, teamName string) error GetTeam(teamID string) (domain.Team, error) GetTeamPoints(teamID string) (int, error) DeleteTeam(TeamID string) error InviteToTeam(UserID string, TeamID string) error DeleteFromTeam(UserID string, TeamID string) error UpdateMember(UserID string, RoleID int) error SetTeamID(userID string, teamID string) error CheckMembership(userId string, teamID string) (bool, error) CheckUserExist(userID string) (bool, error) }
Click to show internal directories.
Click to hide internal directories.