postgres

package
v0.0.0-...-56fefa2 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTaskStorage

func NewTaskStorage(dataSource string) (repository.TaskStorage, error)

func NewTeamStorage

func NewTeamStorage(dataSource string) (repository.TeamStorage, error)

func NewUserAuthStorage

func NewUserAuthStorage(dataSource string) (repository.IUserAuthStorage, error)

Types

type UserAuthStorage

type UserAuthStorage struct {
	// contains filtered or unexported fields
}

func (*UserAuthStorage) ChangeUserPassword

func (r *UserAuthStorage) ChangeUserPassword(userID string, newPassword string) error

func (*UserAuthStorage) ChangeUserProfile

func (r *UserAuthStorage) ChangeUserProfile(userID string, profile *request.ChangeProfile) error

func (*UserAuthStorage) CheckActiveTaskExist

func (r *UserAuthStorage) CheckActiveTaskExist(teamID string) (bool, error)

func (*UserAuthStorage) CheckMembership

func (r *UserAuthStorage) CheckMembership(userId string, teamID string) (bool, error)

func (*UserAuthStorage) CheckTeam

func (r *UserAuthStorage) CheckTeam(teamName string) (exists bool, err error)

func (*UserAuthStorage) CheckUser

func (r *UserAuthStorage) CheckUser(email string) (exists bool, err error)

func (*UserAuthStorage) CheckUserExist

func (r *UserAuthStorage) CheckUserExist(userID string) (bool, error)

func (*UserAuthStorage) CreateTeam

func (r *UserAuthStorage) CreateTeam(teamName string) (string, error)

func (*UserAuthStorage) CreateUser

func (r *UserAuthStorage) CreateUser(user request.Register) (userID string, err error)

func (*UserAuthStorage) DeleteFromTeam

func (r *UserAuthStorage) DeleteFromTeam(UserID string, TeamID string) error

func (*UserAuthStorage) DeleteTeam

func (r *UserAuthStorage) DeleteTeam(TeamID string) error

func (*UserAuthStorage) GetActiveTaskID

func (r *UserAuthStorage) GetActiveTaskID(teamID string) (string, error)

func (*UserAuthStorage) GetAnswers

func (r *UserAuthStorage) GetAnswers(teamID string) ([]domain.Answer, error)

func (*UserAuthStorage) GetAvailableTaskID

func (r *UserAuthStorage) GetAvailableTaskID(teamID string, taskTypeID int) ([]string, error)

func (*UserAuthStorage) GetBusyNocPlaceses

func (r *UserAuthStorage) GetBusyNocPlaceses() (int, error)

func (*UserAuthStorage) GetTask

func (r *UserAuthStorage) GetTask(taskID string) (domain.Task, error)

func (*UserAuthStorage) GetTaskAmount

func (r *UserAuthStorage) GetTaskAmount(taskTypeID int) (int, error)

func (*UserAuthStorage) GetTaskStartedTime

func (r *UserAuthStorage) GetTaskStartedTime(taskID string, TeamID string) (time.Time, error)

func (*UserAuthStorage) GetTaskTypeName

func (r *UserAuthStorage) GetTaskTypeName(taskID string) (string, error)

func (*UserAuthStorage) GetTaskTypes

func (r *UserAuthStorage) GetTaskTypes(teamID string) (domain.TaskTypes, error)

func (*UserAuthStorage) GetTeam

func (r *UserAuthStorage) GetTeam(teamID string) (domain.Team, error)

func (*UserAuthStorage) GetTeamPoints

func (r *UserAuthStorage) GetTeamPoints(teamID string) (int, error)

func (*UserAuthStorage) GetTeamTaskAmount

func (r *UserAuthStorage) GetTeamTaskAmount(taskTypeID int) (int, error)

func (*UserAuthStorage) GetUserID

func (r *UserAuthStorage) GetUserID(email string) (userID string, err error)

func (*UserAuthStorage) GetUserPassword

func (r *UserAuthStorage) GetUserPassword(email string) (password string, err error)

func (*UserAuthStorage) GetUserPasswordById

func (r *UserAuthStorage) GetUserPasswordById(userID string) (password string, err error)

func (*UserAuthStorage) GetUserProfile

func (r *UserAuthStorage) GetUserProfile(userID string) (*response.UserProfile, error)

func (*UserAuthStorage) InviteToTeam

func (r *UserAuthStorage) InviteToTeam(UserID string, TeamID string) error

func (*UserAuthStorage) SetActiveTaskExpired

func (r *UserAuthStorage) SetActiveTaskExpired(taskID string, TeamID string) error

func (*UserAuthStorage) SetAnswerImageBase64

func (r *UserAuthStorage) SetAnswerImageBase64(url string, teamID string, taskID string) error

func (*UserAuthStorage) SetAnswerText

func (r *UserAuthStorage) SetAnswerText(text string, teamID string, taskID string) error

func (*UserAuthStorage) SetTaskToTeam

func (r *UserAuthStorage) SetTaskToTeam(taskID string, taskTypeId int, teamID string) error

func (*UserAuthStorage) SetTeamID

func (r *UserAuthStorage) SetTeamID(UserID string, teamID string) error

func (*UserAuthStorage) UpdateMember

func (r *UserAuthStorage) UpdateMember(UserID string, RoleID int) error

func (*UserAuthStorage) UpdateTeam

func (r *UserAuthStorage) UpdateTeam(teamID string, teamName string) error

Jump to

Keyboard shortcuts

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