Documentation ¶
Index ¶
- Variables
- type IUserServiceRepository
- type UserRepository
- func (u *UserRepository) ActivateUser(userId string) error
- func (u *UserRepository) GetUserById(id string) (*models.UserWithPrivacy, error)
- func (u *UserRepository) LoginUser(username string, email string, password string) (*models.User, error)
- func (u *UserRepository) RegisterUser(id string, firstName string, lastName string, email string, username string, ...) (int, error)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type IUserServiceRepository ¶
type IUserServiceRepository interface { // Activate the user, so that the user can log in ActivateUser(userId string) error // Login the user LoginUser(username string, email string, password string) (*models.User, error) // RegisterUser registers a user RegisterUser(id string, firstName string, lastName string, email string, username string, privacyLevel int) (int, error) GetUserById(userId string) (*models.UserWithPrivacy, error) }
func NewUserRepository ¶
func NewUserRepository(serviceUrl string) IUserServiceRepository
type UserRepository ¶
type UserRepository struct {
// contains filtered or unexported fields
}
func (*UserRepository) ActivateUser ¶
func (u *UserRepository) ActivateUser(userId string) error
func (*UserRepository) GetUserById ¶
func (u *UserRepository) GetUserById(id string) (*models.UserWithPrivacy, error)
Click to show internal directories.
Click to hide internal directories.