services

package
v0.0.0-...-a25e0fb Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

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 NewAuthService

func NewAuthService(collection *mongo.Collection, ctx context.Context) AuthService

type AuthServiceImpl

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

func (*AuthServiceImpl) SignInUser

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)

Jump to

Keyboard shortcuts

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