Documentation
¶
Index ¶
Constants ¶
View Source
const InvalidHex = "invalid hex"
View Source
const PasswordNotMatching = "password does not match"
View Source
const UserNotFound = "user not found"
Variables ¶
This section is empty.
Functions ¶
func GetUserWithLogin ¶
func GetUserWithLogin(email string, password string, channel chan FindUserResponse)
* Gets user from database based on email and password.
If user is not found, an error will be returned.
func GetUsersFromDatabase ¶
func GetUsersFromDatabase(filter interface{}, projection interface{}, channel chan []FindUserResponse, optionsList ...*options.FindOptions)
* Gets users from the database according to the given filter and projection.
func ServeUserRoutes ¶
Types ¶
type FindUserResponse ¶
Click to show internal directories.
Click to hide internal directories.