Documentation ¶
Index ¶
- type IUserRepo
- type RepoPostgre
- func (repo *RepoPostgre) ChangeSubsribe(login string, isSubscribed bool) error
- func (repo *RepoPostgre) ChangeUsersRole(login string, role string) error
- func (repo *RepoPostgre) CheckUserPassword(login string, password string) (bool, error)
- func (repo *RepoPostgre) CreateUser(login string, password string, name string, birthDate string, email string) error
- func (repo *RepoPostgre) EditProfile(prevLogin string, login string, password string, email string, ...) error
- func (repo *RepoPostgre) FindUser(login string) (bool, error)
- func (repo *RepoPostgre) FindUsers(login string, role string, first, limit uint64) ([]models.UserItem, error)
- func (repo *RepoPostgre) GetNamesAndPaths(ids []int32) ([]string, []string, error)
- func (repo *RepoPostgre) GetUser(login string, password string) (*models.UserItem, bool, error)
- func (repo *RepoPostgre) GetUserProfile(login string) (*models.UserItem, error)
- func (repo *RepoPostgre) GetUserProfileId(login string) (int64, error)
- func (repo *RepoPostgre) GetUserRole(login string) (string, error)
- func (repo *RepoPostgre) IsSubscribed(login string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IUserRepo ¶
type IUserRepo interface { GetUser(login string, password string) (*models.UserItem, bool, error) GetUserProfileId(login string) (int64, error) FindUser(login string) (bool, error) CreateUser(login string, password string, name string, birthDate string, email string) error GetUserProfile(login string) (*models.UserItem, error) EditProfile(prevLogin string, login string, password string, email string, birthDate string, photo string) error GetNamesAndPaths(ids []int32) ([]string, []string, error) CheckUserPassword(login string, password string) (bool, error) GetUserRole(login string) (string, error) IsSubscribed(login string) (bool, error) ChangeSubsribe(login string, isSubscribed bool) error FindUsers(login string, role string, first, limit uint64) ([]models.UserItem, error) ChangeUsersRole(login string, role string) error }
type RepoPostgre ¶
type RepoPostgre struct {
// contains filtered or unexported fields
}
func GetUserRepo ¶
func (*RepoPostgre) ChangeSubsribe ¶
func (repo *RepoPostgre) ChangeSubsribe(login string, isSubscribed bool) error
func (*RepoPostgre) ChangeUsersRole ¶
func (repo *RepoPostgre) ChangeUsersRole(login string, role string) error
func (*RepoPostgre) CheckUserPassword ¶
func (repo *RepoPostgre) CheckUserPassword(login string, password string) (bool, error)
func (*RepoPostgre) CreateUser ¶
func (*RepoPostgre) EditProfile ¶
func (*RepoPostgre) GetNamesAndPaths ¶
func (repo *RepoPostgre) GetNamesAndPaths(ids []int32) ([]string, []string, error)
func (*RepoPostgre) GetUserProfile ¶
func (repo *RepoPostgre) GetUserProfile(login string) (*models.UserItem, error)
func (*RepoPostgre) GetUserProfileId ¶
func (repo *RepoPostgre) GetUserProfileId(login string) (int64, error)
func (*RepoPostgre) GetUserRole ¶
func (repo *RepoPostgre) GetUserRole(login string) (string, error)
func (*RepoPostgre) IsSubscribed ¶
func (repo *RepoPostgre) IsSubscribed(login string) (bool, error)
Click to show internal directories.
Click to hide internal directories.