Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthService ¶
type AuthService interface {
SignUpUser(*models.SignUpInput) (*models.DBResponse, error)
SignInUser(*models.SignInInput) (*models.DBResponse, error)
}
func NewAuthServiceImpl ¶
func NewAuthServiceImpl(collection *mongo.Collection, ctx context.Context) AuthService
type AuthServiceImpl ¶
type AuthServiceImpl struct {
// contains filtered or unexported fields
}
func (*AuthServiceImpl) SignInUser ¶
func (uc *AuthServiceImpl) SignInUser(*models.SignInInput) (*models.DBResponse, error)
func (*AuthServiceImpl) SignUpUser ¶
func (uc *AuthServiceImpl) SignUpUser(user *models.SignUpInput) (*models.DBResponse, error)
type UserService ¶
type UserService interface {
FindUserById(string) (*models.DBResponse, error)
FindUserByEmail(string) (*models.DBResponse, error)
}
func NewUserServiceImpl ¶
func NewUserServiceImpl(collection *mongo.Collection, ctx context.Context) UserService
type UserServiceImpl ¶
type UserServiceImpl struct {
// contains filtered or unexported fields
}
func (*UserServiceImpl) FindUserByEmail ¶
func (us *UserServiceImpl) FindUserByEmail(email string) (*models.DBResponse, error)
func (*UserServiceImpl) FindUserById ¶
func (us *UserServiceImpl) FindUserById(id string) (*models.DBResponse, error)
Click to show internal directories.
Click to hide internal directories.