Documentation ¶
Index ¶
- func CheckHashedPassword(password string, hash string) bool
- func CheckUserExists(collection *mongo.Collection, ctx context.Context, username string) (bool, map[string]interface{})
- func GetUser(collection *mongo.Collection, ctx context.Context, token models.GoogleToken, ...) (models.User, string)
- func SignUpUser(collection *mongo.Collection, ctx context.Context, data *models.User) (bool, *mongo.InsertOneResult, models.ProtectedUser, string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckHashedPassword ¶
func CheckUserExists ¶
func GetUser ¶
func GetUser(collection *mongo.Collection, ctx context.Context, token models.GoogleToken, info *oauth2.Tokeninfo) (models.User, string)
func SignUpUser ¶
func SignUpUser(collection *mongo.Collection, ctx context.Context, data *models.User) (bool, *mongo.InsertOneResult, models.ProtectedUser, string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.