users

package
v0.0.0-...-bf4ee82 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2021 License: MIT Imports: 18 Imported by: 0

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

func ServeUserRoutes(r *mux.Router)

Types

type FindUserResponse

type FindUserResponse struct {
	User model.User
	Err  error
}

Jump to

Keyboard shortcuts

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