Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterHandler ¶
func RegisterHandler(w http.ResponseWriter, r *http.Request)
Types ¶
type DbHandler ¶
type DbHandler struct {
// contains filtered or unexported fields
}
DbHandler represents a handler for interacting with the MongoDB database.
func NewDbHandler ¶
NewDbHandler creates a new DbHandler instance with the provided MongoDB database connection.
func (*DbHandler) CreateUser ¶
CreateUser function adds a user to the database It checks to see if user already exist if user exist it returns an error
func (*DbHandler) GetUserByEmail ¶
GetUserByEmail retrives the user from the database based on the Email provided
func (*DbHandler) GetUserById ¶
GetUserById retrives the user info from the databse using Id provided
Click to show internal directories.
Click to hide internal directories.